move inherits and add attrset for imports

This commit is contained in:
Noah Masur
2025-02-08 13:22:33 -05:00
parent 6217871960
commit 59a52dc033
29 changed files with 53 additions and 28 deletions

View File

@ -13,7 +13,7 @@ let
packagesDirectory = lib.filesystem.listFilesRecursive ../pkgs;
packages = lib.pipe packagesDirectory [
# Get only files called package.nix
(builtins.filter (name: (lib.hasSuffix "package.nix" name)))
(builtins.filter (name: (name == "package.nix")))
# Apply callPackage to create a derivation
(builtins.map prev.callPackage)
# Convert the list to an attrset