summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/setup-hook.nix
blob: 364048484825b8059f2f524706e508b53dfb43d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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
  ''