anchor.diff:  
       postPatch = ''
         substituteInPlace sesman/xauth.c --replace "xauth -q" "${xorg.xauth}/bin/xauth -q"
  -      substituteInPlace common/file_loc.h --replace /etc/xrdp $out/etc/xrdp --replace /usr/local $out
  -      substituteInPlace instfiles/xrdp.sh --replace /etc/xrdp $out/etc/xrdp --replace /usr/local $out
       '';
   
       preConfigure = ''
  
positive.code:       repo = "xrdp";
        rev = rev;
        fetchSubmodules = true;
        sha256 = "0a000h82728vp0abvjk2m03nqqiw2lky7kqk41b70cyd3bp0vdnz";
      };
  
      nativeBuildInputs = [ pkgconfig autoconf automake which libtool nasm ];
  
negative.code:   };
  
    xrdp = stdenv.mkDerivation rec {
      version = "0.9.2";
      rev = "48c26a3"; # Fixes https://github.com/neutrinolabs/xrdp/issues/609; not a patch on top of the official repo because "xorgxrdp.configureFlags" above includes "xrdp.src" which must be fixed already
      name = "xrdp-${version}.${rev}";
    
      src = fetchFromGitHub {
  