Files
nixpkgs/pkgs/development/interpreters/python/setup-hook.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
263 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{ 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
''