diff --git a/pkgs/top-level/release-outpaths.nix b/pkgs/top-level/release-outpaths.nix index dcf462a6b6a6..fa2eb12d9e77 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;