anchor.diff:  
     configureFlags = [
       "--without-kernel-modules"
  -    "--without-xmlsecurity"
       "--with-udev-rules-dir=${placeholder "out"}/lib/udev/rules.d"
       "--with-fuse=fuse3"
     ] ++ lib.optional (!withX) "--without-x";
   
     enableParallelBuilding = true;
  -
  -  NIX_CFLAGS_COMPILE = builtins.toString [
  -    # fix build with gcc9
  -    "-Wno-error=address-of-packed-member"
  -    "-Wno-error=format-overflow"
  -  ];
   
     preConfigure = ''
       mkdir -p ${placeholder "out"}/lib/udev/rules.d
  
positive.code: , libdrm
  , udev
  , util-linux
  , withX ? true
  }:
  
  
negative.code:   ];
  
    postPatch = ''
      sed -i Makefile.am \
        -e 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,'
      sed -i scripts/Makefile.am \
        -e 's,^confdir = ,confdir = ''${prefix},' \
        -e 's,usr/bin,''${prefix}/usr/bin,'
      sed -i services/vmtoolsd/Makefile.am \
        -e 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' \
        -e 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),'
      sed -i vgauth/service/Makefile.am \
        -e 's,/etc/vmware-tools/vgauth/schemas,''${prefix}/etc/vmware-tools/vgauth/schemas,' \
        -e 's,$(DESTDIR)/etc/vmware-tools/vgauth.conf,''${prefix}/etc/vmware-tools/vgauth.conf,'
  
      # don't abort on any warning
      sed -i 's,CFLAGS="$CFLAGS -Werror",,' configure.ac
  
      # Make reboot work, shutdown is not in /sbin on NixOS
      sed -i 's,/sbin/shutdown,shutdown,' lib/system/systemLinux.c
  