anchor.diff:    malloc0ReturnsNullCrossFlag = lib.optional
       (stdenv.hostPlatform != stdenv.buildPlatform)
       "--enable-malloc0returnsnull";
  +
  +  brokenOnDarwin = pkg: pkg.overrideAttrs (attrs: {
  +    meta = attrs.meta // { broken = isDarwin; };
  +  });
   in
   self: super:
   {
  
positive.code:       platforms = ["i686-linux" "x86_64-linux"];
      };
    });
  
    # Obsolete drivers that don't compile anymore.
    xf86videoark     = super.xf86videoark.overrideAttrs     (attrs: { meta = attrs.meta // { broken = true; }; });
  
negative.code:     configureFlags = [
        "--with-sdkdir=${placeholder "out"}/include/xorg"
      ];
      meta = attrs.meta // {
        broken = isDarwin; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86inputmouse.x86_64-darwin
      };
    });
  
    xf86inputjoystick = super.xf86inputjoystick.overrideAttrs (attrs: {
      configureFlags = [
        "--with-sdkdir=${placeholder "out"}/include/xorg"
      ];
      meta = attrs.meta // {
        broken = isDarwin; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86inputjoystick.x86_64-darwin
      };
    });
  
    xf86inputkeyboard = brokenOnDarwin super.xf86inputkeyboard; # never worked: https://hydra.nixos.org/job/nixpkgs/trunk/xorg.xf86inputkeyboard.x86_64-darwin
  
    xf86inputlibinput = super.xf86inputlibinput.overrideAttrs (attrs: {
      outputs = [ "out" "dev" ];
  