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

20 lines
263 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ runCommand }:
sitePackages:
let
hook = ./setup-hook.sh;
2024-06-30 08:16:52 +00:00
in
runCommand "python-setup-hook.sh"
{
strictDeps = true;
env = {
inherit sitePackages;
};
}
''
cp ${hook} hook.sh
substituteAllInPlace hook.sh
mv hook.sh $out
''