diff --git a/by-maintainer.nix b/by-maintainer.nix new file mode 100644 index 0000000..e3f02d4 --- /dev/null +++ b/by-maintainer.nix @@ -0,0 +1,12 @@ +{ ... }@args: + +let + pkgs = (import {}); +in + +# convert package list to attrset +with builtins; listToAttrs ( + map ( x: { name = x.pname; value = x;} ) ( + import "${pkgs.path}/maintainers/scripts/build.nix" args + ) +) diff --git a/default.nix b/default.nix index 1635f59..77fc08a 100644 --- a/default.nix +++ b/default.nix @@ -1,12 +1,5 @@ { ... }@args: -let - pkgs = (import {}); -in - -# -with builtins; listToAttrs ( - map ( x: { name = x.pname; value = x;} ) ( - import "${pkgs.path}/maintainers/scripts/build.nix" args - ) -) +{ + illustris = import ./by-maintainer.nix args; +}