anchor.diff:          ] ++ lib.optionals stdenv.hostPlatform.isMusl [
             "--disable-tls"
           ];
  +
           postInstall = ''
             rm -fr $out/share/X11/xkb/compiled # otherwise X will try to write in it
             ( # assert() keeps runtime reference xorgserver-dev in xf86-video-intel and others
  
positive.code:         ];
  
          # XQuartz patchset
          patches = commonPatches ++ [
            (args.fetchpatch {
              url = "https://github.com/XQuartz/xorg-server/commit/e88fd6d785d5be477d5598e70d105ffb804771aa.patch";
              sha256 = "1q0a30m1qj6ai924afz490xhack7rg4q3iig2gxsjjh98snikr1k";
  
negative.code:       if (!isDarwin)
        then {
          outputs = [ "out" "dev" ];
          buildInputs = commonBuildInputs ++ [ makeWrapper args.libdrm args.mesa_noglu ];
          propagatedBuildInputs = [ libpciaccess args.epoxy ] ++ commonPropagatedBuildInputs ++ lib.optionals stdenv.isLinux [
            args.udev
          ];
          prePatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
            export CFLAGS+=" -D__uid_t=uid_t -D__gid_t=gid_t"
          '';
  