pkgs/top-level/release-outpaths.nix: make systems parameter optional

This commit is contained in:
Adam Joseph 2023-11-26 17:27:31 -08:00
parent 5d3cf4e515
commit e5df65704e

View File

@ -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;