anchor.diff:      description = "The TeamSpeak voice communication tool";
       homepage = http://teamspeak.com/;
       license = "http://www.teamspeak.com/?page=downloads&type=ts3_linux_client_latest";
  +    platforms = stdenv.lib.platforms.linux;
     };
   }
   
  
positive.code: { stdenv, fetchurl, zlib, glib, libpng, freetype, xorg, fontconfig, alsaLib }:
  
  let
  
    libDir = if stdenv.is64bit then "lib64" else "lib";
  
    deps =
      [ zlib glib libpng freetype xorg.libSM xorg.libICE xorg.libXrender
        xorg.libXrandr xorg.libXfixes xorg.libXcursor xorg.libXinerama
        fontconfig xorg.libXext xorg.libX11 alsaLib
      ];
  
  in
  
  stdenv.mkDerivation {
    name = "teamspeak-client-3.0.0-beta35";
  
    src = fetchurl {
      url = http://ftp.4players.de/pub/hosted/ts3/releases/beta-35/TeamSpeak3-Client-linux_amd64-3.0.0-beta35.run;
      sha256 = "0vygsvjs11lr5lv4x7awv7hvkycvmm9qs2vklfjs91w3f434cmrx";
    };
  
    unpackPhase =
  
negative.code: 
    buildPhase =
      ''
        mv ts3client_linux_${arch} ts3client
        echo "patching ts3client..."
        patchelf \
          --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
          --set-rpath ${stdenv.lib.makeLibraryPath deps}:$(cat $NIX_GCC/nix-support/orig-gcc)/${libDir} \
          --force-rpath \
          ts3client
      '';
  
    installPhase =
      ''
        # Delete unecessary libraries - these are provided by nixos.
        rm *.so.*
  
        # Install files.
        mkdir -p $out/lib/teamspeak
        mv * $out/lib/teamspeak/
  
        # Make a symlink to the binary from bin.
        mkdir -p $out/bin/
        ln -s $out/lib/teamspeak/ts3client $out/bin/ts3client
      '';
  
    dontStrip = true;
  