anchor.diff:        description = "NoMachine remote desktop client (nxplayer)";
         homepage = "https://www.nomachine.com/";
         license = {
  -        fullName = "NoMachine 6 End-User License Agreement";
  -        url = "https://www.nomachine.com/licensing-6";
  +        fullName = "NoMachine 7 End-User License Agreement";
  +        url = "https://www.nomachine.com/licensing-7";
           free = false;
         };
         maintainers = with maintainers; [ talyz ];
  
positive.code: { lib, stdenv, file, fetchurl, makeWrapper,
    autoPatchelfHook, jsoncpp, libpulseaudio }:
  let
    versionMajor = "6.12";
    versionMinor = "3";
    versionBuild_x86_64 = "7";
    versionBuild_i686 = "8";
  in
    stdenv.mkDerivation rec {
      pname = "nomachine-client";
  
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) .
  