···398398 };
399399400400 xorgserver = with xorg; attrs_passed:
401401- # exchange attrs if fglrxCompat is set
401401+ # exchange attrs if abiCompat is set
402402 let
403403- attrs = if !args.fglrxCompat then attrs_passed else
404404- with args; {
403403+ attrs = with args;
404404+ if (args.abiCompat == null) then attrs_passed
405405+ else if (args.abiCompat == "1.17") then {
405406 name = "xorg-server-1.17.4";
406407 builder = ./builder.sh;
407408 src = fetchurl {
···410411 };
411412 buildInputs = [pkgconfig dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
412413 meta.platforms = stdenv.lib.platforms.unix;
413413- };
414414+ } else if (args.abiCompat == "1.18") then {
415415+ name = "xorg-server-1.18.4";
416416+ builder = ./builder.sh;
417417+ src = fetchurl {
418418+ url = mirror://xorg/individual/xserver/xorg-server-1.18.4.tar.bz2;
419419+ sha256 = "1j1i3n5xy1wawhk95kxqdc54h34kg7xp4nnramba2q8xqfr5k117";
420420+ };
421421+ buildInputs = [pkgconfig dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
422422+ meta.platforms = stdenv.lib.platforms.unix;
423423+ } else throw "unsupported xorg abiCompat: ${args.abiCompat}";
414424415425 in attrs //
416426 (let
+1-1
pkgs/top-level/all-packages.nix
···1079810798 python = python2; # Incompatible with Python 3x
1079910799 udev = if stdenv.isLinux then udev else null;
1080010800 libdrm = if stdenv.isLinux then libdrm else null;
1080110801- fglrxCompat = config.xorg.fglrxCompat or false; # `config` because we have no `xorg.override`
1080110801+ abiCompat = config.xorg.abiCompat or null; # `config` because we have no `xorg.override`
1080210802 } // { inherit xlibsWrapper; } );
10803108031080410804 xwayland = callPackage ../servers/x11/xorg/xwayland.nix { };