mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 15:41:16 +00:00
python3.setupHook: use replaceVars instead of substituteAllInPlace
This commit is contained in:
@@ -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
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user