mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
disko: add nixos-install-tools to PATH
When running disko-install from a distribution that is not NixOS, the nixos-install command was failing due to nixos-install not being in PATH. Fix the error by adding the nixos-install-tools package to the list of packages passed to lib.makeBinPath.
This commit is contained in:
parent
2f5df5dcce
commit
4698b1ef37
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenvNoCC, makeWrapper, lib, path, nix, coreutils }:
|
{ stdenvNoCC, makeWrapper, lib, path, nix, coreutils, nixos-install-tools }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
name = "disko";
|
name = "disko";
|
||||||
|
@ -14,7 +14,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
sed -e "s|libexec_dir=\".*\"|libexec_dir=\"$out/share/disko\"|" "$i" > "$out/bin/$i"
|
sed -e "s|libexec_dir=\".*\"|libexec_dir=\"$out/share/disko\"|" "$i" > "$out/bin/$i"
|
||||||
chmod 755 "$out/bin/$i"
|
chmod 755 "$out/bin/$i"
|
||||||
wrapProgram "$out/bin/$i" \
|
wrapProgram "$out/bin/$i" \
|
||||||
--prefix PATH : ${lib.makeBinPath [ nix coreutils ]} \
|
--prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install-tools ]} \
|
||||||
--prefix NIX_PATH : "nixpkgs=${path}"
|
--prefix NIX_PATH : "nixpkgs=${path}"
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue