anchor.diff:    libXi = super.libXi.overrideAttrs (attrs: {
       outputs = [ "out" "dev" "man" "doc" ];
       propagatedBuildInputs = [ self.libXfixes ];
  -    configureFlags = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
  -      "xorg_cv_malloc0_returns_null=no"
  -    ];
  +    configureFlags = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
  +      "xorg_cv_malloc0_returns_null=no";
     });
   
     libXinerama = super.libXinerama.overrideAttrs (attrs: {
  
positive.code:   xf86inputevdev = super.xf86inputevdev.overrideAttrs (attrs: {
      outputs = [ "out" "dev" ]; # to get rid of xorgserver.dev; man is tiny
      preBuild = "sed -e '/motion_history_proc/d; /history_size/d;' -i src/*.c";
      installFlags = "sdkdir=\${out}/include/xorg";
    });
  
    xf86inputmouse = super.xf86inputmouse.overrideAttrs (attrs: {
      installFlags = "sdkdir=\${out}/include/xorg";
    });
  
    xf86inputjoystick = super.xf86inputjoystick.overrideAttrs (attrs: {
      installFlags = "sdkdir=\${out}/include/xorg";
    });
  
    xf86inputlibinput = super.xf86inputlibinput.overrideAttrs (attrs: {
      outputs = [ "out" "dev" ];
      installFlags = "sdkdir=\${dev}/include/xorg";
    });
  
    xf86inputsynaptics = super.xf86inputsynaptics.overrideAttrs (attrs: {
      outputs = [ "out" "dev" ]; # *.pc pulls xorgserver.dev
      installFlags = "sdkdir=\${out}/include/xorg configdir=\${out}/share/X11/xorg.conf.d";
    });
  
    xf86inputvmmouse = super.xf86inputvmmouse.overrideAttrs (attrs: {
      configureFlags = [
        "--sysconfdir=$(out)/etc"
        "--with-xorg-conf-dir=$(out)/share/X11/xorg.conf.d"
        "--with-udev-rules-dir=$(out)/lib/udev/rules.d"
      ];
  
      meta = attrs.meta // {
  
negative.code:     x11BuildHook = ./imake.sh;
      patches = [./imake.patch ./imake-cc-wrapper-uberhack.patch];
      setupHook = ./imake-setup-hook.sh;
      CFLAGS = "-DIMAKE_COMPILETIME_CPP='\"${if stdenv.isDarwin
        then "${tradcpp}/bin/cpp"
        else "gcc"}\"'";
  
      inherit tradcpp;
    });
  
  