anchor.diff:    nativeBuildInputs = [ autoPatchelfHook ];
   
     installPhase = ''
  +    runHook preInstall
  +
       # Install files.
       mkdir -p $out/lib/teamspeak
       mv * $out/lib/teamspeak/
  
positive.code:   arch = if stdenv.is64bit then "amd64" else "x86";
  in stdenv.mkDerivation rec {
    pname = "teamspeak-server";
    version = "3.13.3";
  
    src = fetchurl {
      url = "https://files.teamspeak-services.com/releases/server/${version}/teamspeak3-server_linux_${arch}-${version}.tar.bz2";
      sha256 = if stdenv.is64bit
        then "sha256-+b9S0ekQmXF5KwvVcmHIDpp0iZRO2W1ls8eYhDzjUUw="
        else "sha256-Qu6xPzbUdqO93j353cfQILlFYqmwFSnFWG9TjniX0+c=";
    };
  
    buildInputs = [ stdenv.cc.cc postgresql.lib ];
  
negative.code:     mkdir -p $out/bin/
      ln -s $out/lib/teamspeak/ts3server $out/bin/ts3server
      ln -s $out/lib/teamspeak/tsdns/tsdnsserver $out/bin/tsdnsserver
  
      runHook postInstall
    '';
  
    passthru.updateScript = writeScript "update-teampeak-server" ''
      #!/usr/bin/env nix-shell
      #!nix-shell -i bash -p common-updater-scripts curl gnugrep gnused jq pup
  
      set -eu -o pipefail
  
      version=$( \
        curl https://www.teamspeak.com/en/downloads/ \
          | pup "#server .linux .version json{}" \
          | jq -r ".[0].text"
      )
  
      versionOld=$(nix-instantiate --eval --strict -A "teamspeak_server.version")
  