core/pkgs/by-name/py/python3Minimal/setup-hook.nix

14 lines
233 B
Nix

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