nixos-rebuild: support prebuilt Nix on aarch64

We have a fallback hashes entry for aarch64-linux, but it was unused
by nixos-rebuild.
This commit is contained in:
Alyssa Ross 2021-05-14 12:53:57 +00:00
parent b08e223a04
commit 341836ced2
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0
2 changed files with 3 additions and 0 deletions

View file

@ -18,5 +18,6 @@ substituteAll {
inherit runtimeShell nix;
nix_x86_64_linux = fallback.x86_64-linux;
nix_i686_linux = fallback.i686-linux;
nix_aarch64_linux = fallback.aarch64-linux;
path = lib.makeBinPath [ coreutils jq gnused gnugrep ];
}

View file

@ -386,6 +386,8 @@ prebuiltNix() {
echo @nix_x86_64_linux@
elif [[ "$machine" =~ i.86 ]]; then
echo @nix_i686_linux@
elif [[ "$machine" = aarch64 ]]; then
echo @nix_aarch64_linux@
else
echo "$0: unsupported platform"
exit 1