mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
xorg: allow and check abiCompat on current version
This commit is contained in:
parent
68dda232d2
commit
ebf1dade82
@ -429,8 +429,9 @@ in
|
|||||||
xorgserver = with xorg; attrs_passed:
|
xorgserver = with xorg; attrs_passed:
|
||||||
# exchange attrs if abiCompat is set
|
# exchange attrs if abiCompat is set
|
||||||
let
|
let
|
||||||
|
version = (builtins.parseDrvName attrs_passed.name).version;
|
||||||
attrs = with args;
|
attrs = with args;
|
||||||
if (args.abiCompat == null) then attrs_passed
|
if (args.abiCompat == null || lib.hasPrefix args.abiCompat version) then attrs_passed
|
||||||
else if (args.abiCompat == "1.17") then {
|
else if (args.abiCompat == "1.17") then {
|
||||||
name = "xorg-server-1.17.4";
|
name = "xorg-server-1.17.4";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
@ -452,7 +453,7 @@ in
|
|||||||
buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
|
buildInputs = [ dri2proto dri3proto renderproto libdrm openssl libX11 libXau libXaw libxcb xcbutil xcbutilwm xcbutilimage xcbutilkeysyms xcbutilrenderutil libXdmcp libXfixes libxkbfile libXmu libXpm libXrender libXres libXt ];
|
||||||
postPatch = "sed '1i#include <malloc.h>' -i include/os.h";
|
postPatch = "sed '1i#include <malloc.h>' -i include/os.h";
|
||||||
meta.platforms = stdenv.lib.platforms.unix;
|
meta.platforms = stdenv.lib.platforms.unix;
|
||||||
} else throw "unsupported xorg abiCompat: ${args.abiCompat}";
|
} else throw "unsupported xorg abiCompat ${args.abiCompat} for ${attrs_passed.name}";
|
||||||
|
|
||||||
in attrs //
|
in attrs //
|
||||||
(let
|
(let
|
||||||
|
Loading…
Reference in New Issue
Block a user