mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 06:23:28 +01: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:
1 parent
2f5df5dcce
commit
4698b1ef37
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in new issue
Block a user