libva: Disable X support

This commit is contained in:
Mikael 2024-09-05 22:54:43 +02:00
parent 0a3cdae3e5
commit 0a1fcf2060
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -3,7 +3,7 @@
let let
inherit (final) system; inherit (final) system;
inherit (nixpkgs.lib.attrsets) genAttrs; inherit (nixpkgs.lib.attrsets) genAttrs;
inherit (nixpkgs.lib.lists) remove; inherit (nixpkgs.lib.lists) remove subtractLists;
inherit (nixpkgs.lib.strings) mesonBool mesonEnable; inherit (nixpkgs.lib.strings) mesonBool mesonEnable;
inherit (self.lib) substituteFlags removePackages; inherit (self.lib) substituteFlags removePackages;
@ -199,6 +199,16 @@ in genAttrs [
x11Support = false; x11Support = false;
}; };
libva = prev.libva.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "libX.*" ];
meta = prevAttrs.meta or { } // {
pkgConfigModules = prevAttrs.meta.pkgConfigModules
|> subtractLists [ "libva-glx" "libva-x11" ];
};
});
libGL = prev.libGL.overrideAttrs (prevAttrs: { libGL = prev.libGL.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ] buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "libX.*" "xorgproto" ]; |> removePackages [ "libX.*" "xorgproto" ];