mirror of
https://github.com/numtide/flake-utils.git
synced 2024-12-14 11:47:31 +00:00
use defaultSystems in simpleFlake.nix
Keep the list of systems in sync by passing the list around. Fixes #54
This commit is contained in:
parent
a4b154ebbd
commit
0d347c56f6
2 changed files with 5 additions and 3 deletions
|
@ -178,7 +178,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
# This function tries to capture a common flake pattern.
|
# This function tries to capture a common flake pattern.
|
||||||
simpleFlake = import ./simpleFlake.nix { inherit lib; };
|
simpleFlake = import ./simpleFlake.nix { inherit lib defaultSystems; };
|
||||||
|
|
||||||
# Helper functions for Nix evaluation
|
# Helper functions for Nix evaluation
|
||||||
check-utils = import ./check-utils.nix;
|
check-utils = import ./check-utils.nix;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ lib }:
|
{ lib
|
||||||
|
, defaultSystems ? [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]
|
||||||
|
}:
|
||||||
# This function returns a flake outputs-compatible schema.
|
# This function returns a flake outputs-compatible schema.
|
||||||
{
|
{
|
||||||
# pass an instance of self
|
# pass an instance of self
|
||||||
|
@ -18,7 +20,7 @@
|
||||||
, # maps to the devShell output. Pass in a shell.nix file or function.
|
, # maps to the devShell output. Pass in a shell.nix file or function.
|
||||||
shell ? null
|
shell ? null
|
||||||
, # pass the list of supported systems
|
, # pass the list of supported systems
|
||||||
systems ? [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]
|
systems ? defaultSystems
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
loadOverlay = obj:
|
loadOverlay = obj:
|
||||||
|
|
Loading…
Reference in a new issue