depot/third_party/nixpkgs/pkgs/development/interpreters/python/setup-hook.nix

17 lines
241 B
Nix
Raw Normal View History

{ 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
''