From 5056824e64bb3ea15a97ec91b3abe2331d403184 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 28 May 2021 21:49:44 -0400 Subject: maintainers/scripts/oci: Allow A1 image builds --- nixos/maintainers/scripts/oci/create-image.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'nixos/maintainers') diff --git a/nixos/maintainers/scripts/oci/create-image.sh b/nixos/maintainers/scripts/oci/create-image.sh index f876872289cd..30583a20a1c6 100755 --- a/nixos/maintainers/scripts/oci/create-image.sh +++ b/nixos/maintainers/scripts/oci/create-image.sh @@ -3,8 +3,20 @@ export NIX_PATH=nixpkgs=$(dirname $(readlink -f $0))/../../../.. export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/oci-image.nix +if (( $# < 1 )); then + ( + echo "Usage: create-image.sh " + echo + echo "Where is one of:" + echo " x86_64-linux" + echo " aarch64-linux" + ) >&2 +fi + +system="$1"; shift + nix-build '' \ -A config.system.build.OCIImage \ - --argstr system x86_64-linux \ + --argstr system "$system" \ --option system-features kvm \ -o oci-image -- cgit 1.4.1