anchor.diff:    buildInputs = [ fuse glib icu libdnet libmspack openssl pam procps xercesc ]
         ++ lib.optionals withX [ gdk-pixbuf-xlib gtk3 gtkmm3 libX11 libXext libXinerama libXi libXrender libXrandr libXtst ];
   
  -  patches = [ 
  -    ./recognize_nixos.patch 
  +  patches = [
  +    ./recognize_nixos.patch
       ./find_gdk_pixbuf_xlib.patch #See https://github.com/vmware/open-vm-tools/pull/438
     ];
   
  
positive.code: 
       sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' Makefile.am
       sed -i 's,^confdir = ,confdir = ''${prefix},' scripts/Makefile.am
       sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' services/vmtoolsd/Makefile.am
       sed -i 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' services/vmtoolsd/Makefile.am
       sed -i 's,$(UDEVRULESDIR),''${prefix}/$(UDEVRULESDIR),' udev/Makefile.am
  
negative.code: 
  stdenv.mkDerivation rec {
    pname = "open-vm-tools";
    version = "11.1.0";
  
    src = fetchFromGitHub {
      owner  = "vmware";
      repo   = "open-vm-tools";
      rev    = "stable-${version}";
      sha256 = "1wyiz8j5b22ajrr1fh9cn55lsgd5g13q0i8wvk2a0yw0vaw1883s";
    };
  
    sourceRoot = "${src.name}/open-vm-tools";
  