@@ -393,10 +393,11 @@ in
393393 };
394394
395395 xorgserver = with xorg; attrs_passed:
396− # exchange attrs if fglrxCompat is set
396+ # exchange attrs if abiCompat is set
397397 let
398− attrs = if !args.fglrxCompat then attrs_passed else
399− with args; {
398+ attrs = with args;
399+ if (args.abiCompat == null) then attrs_passed
400+ else if (args.abiCompat == "1.17") then {
400401 name = "xorg-server-1.17.4";
401402 builder = ./builder.sh;
402403 src = fetchurl {
@@ -405,7 +406,16 @@ in
405406 };
406407 buildInputs = [pkgconfig dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
407408 meta.platforms = stdenv.lib.platforms.unix;
408− };
409+ } else if (args.abiCompat == "1.18") then {
410+ name = "xorg-server-1.18.4";
411+ builder = ./builder.sh;
412+ src = fetchurl {
413+ url = mirror://xorg/individual/xserver/xorg-server-1.18.4.tar.bz2;
414+ sha256 = "1j1i3n5xy1wawhk95kxqdc54h34kg7xp4nnramba2q8xqfr5k117";
415+ };
416+ buildInputs = [pkgconfig dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
417+ meta.platforms = stdenv.lib.platforms.unix;
418+ } else throw "unsupported xorg abiCompat: ${args.abiCompat}";
409419
410420 in attrs //
411421 (let