about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/setup-hook.nix
blob: 29ce079317f03638798e5b040f955ba5eae3d70a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ runCommand }:

sitePackages:

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