summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/setup-hook.nix
blob: 8cfb9dd46784d48e5a8b8ea703470d537610cfa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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
''