mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
17 lines
241 B
Nix
17 lines
241 B
Nix
{ 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
|
|
''
|