2021-01-16 12:17:21 +00:00
|
|
|
{ substituteAll
|
|
|
|
, runtimeShell
|
|
|
|
, coreutils
|
|
|
|
, gnused
|
|
|
|
, gnugrep
|
|
|
|
, jq
|
|
|
|
, nix
|
|
|
|
, lib
|
|
|
|
}:
|
2021-01-15 19:03:07 +00:00
|
|
|
let
|
|
|
|
fallback = import ./../../../../nixos/modules/installer/tools/nix-fallback-paths.nix;
|
2021-01-16 12:17:21 +00:00
|
|
|
in
|
|
|
|
substituteAll {
|
2021-01-15 19:03:07 +00:00
|
|
|
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;
|
2021-05-14 13:53:57 +01:00
|
|
|
nix_aarch64_linux = fallback.aarch64-linux;
|
2021-01-16 12:17:21 +00:00
|
|
|
path = lib.makeBinPath [ coreutils jq gnused gnugrep ];
|
2021-01-15 19:03:07 +00:00
|
|
|
}
|