anchor.diff:  { lib, stdenv, file, fetchurl, makeWrapper,
     autoPatchelfHook, jsoncpp, libpulseaudio }:
   let
  -  versionMajor = "6.12";
  -  versionMinor = "3";
  -  versionBuild_x86_64 = "7";
  -  versionBuild_i686 = "8";
  +  versionMajor = "7.0";
  +  versionMinor = "211";
  +  versionBuild_x86_64 = "4";
  +  versionBuild_i686 = "4";
   in
     stdenv.mkDerivation rec {
       pname = "nomachine-client";
  
positive.code:       tar xf nxclient.tar.gz
        tar xf nxplayer.tar.gz
        rm $(find . -maxdepth 1 -type f)
      '';
  
      nativeBuildInputs = [ file makeWrapper autoPatchelfHook ];
  
negative.code:     src =
        if stdenv.hostPlatform.system == "x86_64-linux" then
          fetchurl {
            url = "https://download.nomachine.com/download/${versionMajor}/Linux/nomachine_${version}_${versionBuild_x86_64}_x86_64.tar.gz";
            sha256 = "06habqsl5gp13sym519r3qp188qwqqfw8p48wcs4zj3kcri6fjz0";
          }
        else if stdenv.hostPlatform.system == "i686-linux" then
          fetchurl {
            url = "https://download.nomachine.com/download/${versionMajor}/Linux/nomachine_${version}_${versionBuild_i686}_i686.tar.gz";
            sha256 = "1y4lr95mwilwr7gqsxqvygq4w3dcp4cjh8m06wdi3avwdzrjkgj9";
          }
        else
          throw "NoMachine client is not supported on ${stdenv.hostPlatform.system}";
  
      # nxusb-legacy is only needed for kernel versions < 3
      postUnpack = ''
        mv $(find . -type f -name nxclient.tar.gz) .
        mv $(find . -type f -name nxplayer.tar.gz) .
  