anchor.diff:          ];
   
           # XQuartz patchset
  -        patches = commonPatches ++ [
  +        patches = [
             (args.fetchpatch {
               url = "https://github.com/XQuartz/xorg-server/commit/e88fd6d785d5be477d5598e70d105ffb804771aa.patch";
               sha256 = "1q0a30m1qj6ai924afz490xhack7rg4q3iig2gxsjjh98snikr1k";
  
positive.code:         dri2proto dri3proto kbproto xineramaproto resourceproto scrnsaverproto videoproto
          libXfont2
        ];
        # fix_segfault: https://bugs.freedesktop.org/show_bug.cgi?id=91316
        commonPatches = [ ];
        # XQuartz requires two compilations: the first to get X / XQuartz,
        # and the second to get Xvfb, Xnest, etc.
        darwinOtherX = overrideDerivation xorgserver (oldAttrs: {
  
negative.code:         ] ++ 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
  