core/pkgs/by-name/py/python/setup-hook.nix
2024-06-30 09:12:46 +01:00

20 lines
263 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
''