use defaultSystems in simpleFlake.nix

Keep the list of systems in sync by passing the list around.

Fixes #54
This commit is contained in:
zimbatm 2022-05-12 18:28:05 +02:00
parent a4b154ebbd
commit 0d347c56f6
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7
2 changed files with 5 additions and 3 deletions

View File

@ -178,7 +178,7 @@ let
};
# 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
check-utils = import ./check-utils.nix;

View File

@ -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.
{
# pass an instance of self
@ -18,7 +20,7 @@
, # maps to the devShell output. Pass in a shell.nix file or function.
shell ? null
, # pass the list of supported systems
systems ? [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]
systems ? defaultSystems
}:
let
loadOverlay = obj: