python3.setupHook: use replaceVars instead of substituteAllInPlace

This commit is contained in:
Stefan Frijters
2026-01-28 17:43:58 +01:00
parent 31ad153fb5
commit 052e8a9c58

View File

@@ -1,19 +1,19 @@
{ runCommand }:
{
runCommand,
replaceVars,
}:
sitePackages:
let
hook = ./setup-hook.sh;
hook = replaceVars ./setup-hook.sh {
inherit sitePackages;
};
in
runCommand "python-setup-hook.sh"
{
strictDeps = true;
env = {
inherit sitePackages;
};
}
''
cp ${hook} hook.sh
substituteAllInPlace hook.sh
mv hook.sh $out
cp ${hook} $out
''