flake.nix: simplify forAllSystems
This commit is contained in:
parent
df69823767
commit
3d6ca4564e
|
@ -29,10 +29,7 @@
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
];
|
];
|
||||||
forAllSystems = f:
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
builtins.foldl' (systems: system:
|
|
||||||
systems // { ${system} = f system; }
|
|
||||||
) {} systems;
|
|
||||||
in rec {
|
in rec {
|
||||||
|
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system:
|
||||||
|
|
Loading…
Reference in New Issue