Simplify function (#2903)
This commit is contained in:
parent
8ec13d33b1
commit
93a69d0738
|
@ -7,8 +7,7 @@
|
||||||
supportedSystems = with nixpkgs.lib.platforms; linux ++ darwin;
|
supportedSystems = with nixpkgs.lib.platforms; linux ++ darwin;
|
||||||
|
|
||||||
# Function to generate a set based on supported systems
|
# Function to generate a set based on supported systems
|
||||||
forAllSystems = f:
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
|
||||||
|
|
||||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||||
in rec {
|
in rec {
|
||||||
|
|
Loading…
Reference in a new issue