mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03: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,4 +1,4 @@
|
||||
{ stdenvNoCC, makeWrapper, lib, path, nix, coreutils }:
|
||||
{ stdenvNoCC, makeWrapper, lib, path, nix, coreutils, nixos-install-tools }:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
name = "disko";
|
||||
@ -14,7 +14,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
sed -e "s|libexec_dir=\".*\"|libexec_dir=\"$out/share/disko\"|" "$i" > "$out/bin/$i"
|
||||
chmod 755 "$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}"
|
||||
done
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user