mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
15 lines
224 B
Nix
15 lines
224 B
Nix
{ 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
|
|
''
|