qt6: Disable X support
This commit is contained in:
parent
ec352812f8
commit
e8d81981f3
1 changed files with 19 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue