Reapply "refactor: substituteAll -> replaceVars"

This reverts commit 61ca6faf84.
This commit is contained in:
Zhaofeng Li
2025-05-26 09:17:46 -06:00
parent 09c0111fe0
commit 23747f69ea
2 changed files with 12 additions and 7 deletions
+6 -4
View File
@@ -1,6 +1,6 @@
{ lib
, pkgs
, substituteAll
, replaceVarsWith
, runtimeShell
, coreutils
, findutils
@@ -13,13 +13,15 @@
}:
let
script = substituteAll {
script = replaceVarsWith {
name = "nuke-homebrew-repository";
src = ./nuke-homebrew-repository.sh.in;
isExecutable = true;
inherit runtimeShell;
path = lib.makeBinPath [ coreutils findutils gnugrep gnused gitMinimal ];
replacements = {
inherit runtimeShell;
path = lib.makeBinPath [ coreutils findutils gnugrep gnused gitMinimal ];
};
};
test-nuke =