anchor.diff:        # Make a symlink to the binary from bin.
         mkdir -p $out/bin/
         ln -s $out/lib/teamspeak/ts3client $out/bin/ts3client
  +
  +      wrapProgram $out/bin/ts3client \
  +        --set LD_PRELOAD "${libredirect}/lib/libredirect.so" \
  +        --set QT_PLUGIN_PATH "$out/lib/teamspeak/platforms" \
  +        --set NIX_REDIRECTS /usr/share/X11/xkb=${xkeyboard_config}/share/X11/xkb
       '';
   
     dontStrip = true;
  
positive.code: 
    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 qt4 pulseaudio
      ];
  
  in
  
  stdenv.mkDerivation {
    name = "teamspeak-client-${version}";
  
    src = fetchurl {
      urls = [
         "http://dl.4players.de/ts/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
        "http://teamspeak.gameserver.gamed.de/ts3/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
        "http://files.teamspeak-services.com/releases/${version}/TeamSpeak3-Client-linux_${arch}-${version}.run"
      ];
      sha256 = if stdenv.is64bit 
  		then "0mj8vpsnv906n3wgjwhiby5gk26jr5jbd94swmsf0s9kqwhsj6i1"
                  else "1hlw7lc0nl1mrsyd052s6ws64q5aabnw6qpv8mrdxb3hyp7g2qh1";
    };
  
    unpackPhase =
      ''
        yes yes | sh $src
        cd TeamSpeak*
      '';
  
  
negative.code: { stdenv, fetchurl, zlib, glib, libpng, freetype, xorg, fontconfig, alsaLib, makeWrapper, xlibs
  ,  qt5, pulseaudio ? null, qt4, xkeyboard_config, libredirect }:
  
  let
  
    arch = if stdenv.is64bit then "amd64" else "x86";
   
  