anchor.diff:      inherit (xorg) xorgcffiles;
       x11BuildHook = ./imake.sh;
       patches = [./imake.patch];
  -    setupHook = if stdenv.isDarwin then ./darwin-imake-setup-hook.sh else null;
  -    CFLAGS = [ "-DIMAKE_COMPILETIME_CPP=\\\"${if stdenv.isDarwin
  -      then "${args.tradcpp}/bin/cpp"
  -      else "gcc"}\\\""
  +    CFLAGS = [ "-DIMAKE_COMPILETIME_CPP=gcc"
       ];
  -    tradcpp = if stdenv.isDarwin then args.tradcpp else null;
     };
   
     intelgputools = attrs: attrs // {
  
positive.code:   };
  
    xinit = attrs: attrs // {
      stdenv = if isDarwin then args.clangStdenv else stdenv;
      buildInputs = attrs.buildInputs ++ lib.optional isDarwin args.bootstrap_cmds;
      configureFlags = [
        "--with-xserver=${xorg.xorgserver}/bin/X"
      ] ++ lib.optionals isDarwin [
        "--with-bundle-id-prefix=org.nixos.xquartz"
        "--with-launchdaemons-dir=\${out}/LaunchDaemons"
        "--with-launchagents-dir=\${out}/LaunchAgents"
      ];
      propagatedBuildInputs = [ xorg.xauth ]
                           ++ lib.optionals isDarwin [ xorg.libX11 xorg.xproto ];
      prePatch = ''
        sed -i 's|^defaultserverargs="|&-logfile \"$HOME/.xorg.log\"|p' startx.cpp
      '';
  
negative.code:       ];
        # fix_segfault: https://bugs.freedesktop.org/show_bug.cgi?id=91316
        commonPatches = [ ./xorgserver-xkbcomp-path.patch ];
      in
        {
          buildInputs = [ makeWrapper ] ++ commonBuildInputs;
          propagatedBuildInputs = [ libpciaccess pixman ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
            args.udev
  