diff options
author | Adam Joseph <adam@westernsemico.com> | 2023-11-26 17:27:31 -0800 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2023-12-15 04:21:33 -0800 |
commit | e5df65704e52afafe7be717060579b07d476d30d (patch) | |
tree | 233e7779cf4fe5f56c8df0bc34bb3e84bf4fb808 | |
parent | 5d3cf4e5157ac5f16555af1de1d1f47fafdc3b01 (diff) |
pkgs/top-level/release-outpaths.nix: make systems parameter optional
-rw-r--r-- | pkgs/top-level/release-outpaths.nix | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/pkgs/top-level/release-outpaths.nix b/pkgs/top-level/release-outpaths.nix index dcf462a6b6a6f..fa2eb12d9e77b 100644 --- a/pkgs/top-level/release-outpaths.nix +++ b/pkgs/top-level/release-outpaths.nix @@ -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; |