Allow packages to be built with QT5 stuff
diff --git a/overlays/packages.nix b/overlays/packages.nix
index bd82619..5c54246 100644
--- a/overlays/packages.nix
+++ b/overlays/packages.nix
@@ -1,6 +1,11 @@
final: prev: let
lib = prev.lib;
utils = import ../utils lib;
+
+ extraAttrSets = with final; [
+ libsForQt5
+ libsForQt5.qt5
+ ];
in
lib.pipe ../packages [
utils.nixFilesInWithName
@@ -9,7 +14,11 @@
path,
}: {
name = builtins.substring 0 ((builtins.stringLength name) - 4) name;
- value = final.callPackage path {};
+ value = final.callPackage path (
+ builtins.intersectAttrs
+ (builtins.functionArgs (import path))
+ (lib.fold lib.mergeAttrs {} extraAttrSets)
+ );
}))
builtins.listToAttrs
]