diff --git a/overlay/modern-minimal.nix b/overlay/modern-minimal.nix index 1fd140f..322d07d 100644 --- a/overlay/modern-minimal.nix +++ b/overlay/modern-minimal.nix @@ -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;