qt6: Disable X support

This commit is contained in:
Mikael 2024-09-06 17:26:51 +02:00
parent ec352812f8
commit e8d81981f3
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -2,7 +2,7 @@
let
inherit (final) system;
inherit (nixpkgs.lib.attrsets) genAttrs;
inherit (nixpkgs.lib.attrsets) genAttrs mapAttrsToList;
inherit (nixpkgs.lib.lists) remove subtractLists;
inherit (nixpkgs.lib.strings) mesonBool mesonEnable;
inherit (self.lib) substituteFlags removePackages;
@ -314,6 +314,24 @@ in genAttrs [
};
});
qt6 = prev.qt6.overrideScope (final: prev: {
qtbase = (prev.qtbase.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "libX.*" "libxcb" "xcb.*" ];
cmakeFlags = prevAttrs.cmakeFlags ++ mapAttrsToList
(f: v: "-DQT_FEATURE_${f}:BOOL=${if v then "ON" else "OFF"}") {
xcb = false;
xlib = false;
vulkan = true;
wayland = true;
};
})).override {
postgresql = null;
qttranslations = null;
};
});
systemd = prev.systemd.override {
withApparmor = false;
withHomed = false;