move things around

This commit is contained in:
illustris 2022-01-23 15:56:54 +05:30
parent 1008a75179
commit 387a3e55aa
2 changed files with 15 additions and 10 deletions

12
by-maintainer.nix Normal file
View File

@ -0,0 +1,12 @@
{ ... }@args:
let
pkgs = (import <nixpkgs> {});
in
# convert package list to attrset
with builtins; listToAttrs (
map ( x: { name = x.pname; value = x;} ) (
import "${pkgs.path}/maintainers/scripts/build.nix" args
)
)

View File

@ -1,12 +1,5 @@
{ ... }@args: { ... }@args:
let {
pkgs = (import <nixpkgs> {}); illustris = import ./by-maintainer.nix args;
in }
#
with builtins; listToAttrs (
map ( x: { name = x.pname; value = x;} ) (
import "${pkgs.path}/maintainers/scripts/build.nix" args
)
)