1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ runCommand }: sitePackages: let hook = ./setup-hook.sh; in runCommand "python-setup-hook.sh" { strictDeps = true; inherit sitePackages; } '' cp ${hook} hook.sh substituteAllInPlace hook.sh mv hook.sh $out ''