disko: depend on nixos-install rather than nixos-install-tools

this avoids rebuilds.
This commit is contained in:
Jörg Thalheim 2024-09-16 15:53:42 +02:00
parent fd81e768a7
commit 44b9691b37

View File

@ -4,7 +4,7 @@
, fetchFromGitHub
, bash
, nix
, nixos-install-tools
, nixos-install
, coreutils
}:
@ -27,7 +27,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
for i in disko disko-install; do
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 nixos-install-tools ]}
wrapProgram "$out/bin/$i" --prefix PATH : ${lib.makeBinPath [ nix coreutils nixos-install ]}
done
runHook postInstall
'';