pkgs/top-level/release-outpaths.nix: make systems parameter optional
This commit is contained in:
parent
5d3cf4e515
commit
e5df65704e
@ -9,6 +9,15 @@
|
||||
|
||||
# used by pkgs/top-level/release-attrnames-superset.nix
|
||||
, attrNamesOnly ? false
|
||||
|
||||
# Set this to `null` to build for builtins.currentSystem only
|
||||
, systems ? [
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
#"i686-linux" # !!!
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
]
|
||||
}:
|
||||
let
|
||||
lib = import (path + "/lib");
|
||||
@ -16,14 +25,10 @@ let
|
||||
# Compromise: accuracy vs. resources needed for evaluation.
|
||||
{
|
||||
inherit attrNamesOnly;
|
||||
supportedSystems = [
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
#"i686-linux" # !!!
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
];
|
||||
|
||||
supportedSystems =
|
||||
if systems == null
|
||||
then [ builtins.currentSystem ]
|
||||
else systems;
|
||||
nixpkgsArgs = {
|
||||
config = {
|
||||
allowAliases = false;
|
||||
|
Loading…
Reference in New Issue
Block a user