outputs: use lib.genAttrs for system attrset generation
This commit is contained in:
parent
6a1b7d27c0
commit
dc0351c2c9
1 changed files with 1 additions and 4 deletions
|
@ -13,10 +13,7 @@ systems = [
|
||||||
];
|
];
|
||||||
|
|
||||||
# (system -> x) -> { [system] := x }
|
# (system -> x) -> { [system] := x }
|
||||||
forEachSystem = x: lib.pipe systems [
|
forEachSystem = lib.genAttrs systems;
|
||||||
(builtins.map (system: { name = system; value = x system; }))
|
|
||||||
builtins.listToAttrs
|
|
||||||
];
|
|
||||||
|
|
||||||
self = {
|
self = {
|
||||||
inherit inputs lib self;
|
inherit inputs lib self;
|
||||||
|
|
Loading…
Add table
Reference in a new issue