mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
341836ced2
We have a fallback hashes entry for aarch64-linux, but it was unused by nixos-rebuild.
24 lines
503 B
Nix
24 lines
503 B
Nix
{ substituteAll
|
|
, runtimeShell
|
|
, coreutils
|
|
, gnused
|
|
, gnugrep
|
|
, jq
|
|
, nix
|
|
, lib
|
|
}:
|
|
let
|
|
fallback = import ./../../../../nixos/modules/installer/tools/nix-fallback-paths.nix;
|
|
in
|
|
substituteAll {
|
|
name = "nixos-rebuild";
|
|
src = ./nixos-rebuild.sh;
|
|
dir = "bin";
|
|
isExecutable = true;
|
|
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 ];
|
|
}
|