mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 16:46:09 +00:00
14 lines
203 B
Nix
14 lines
203 B
Nix
|
{ runCommand }:
|
||
|
|
||
|
sitePackages:
|
||
|
|
||
|
let
|
||
|
hook = ./setup-hook.sh;
|
||
|
in runCommand "python-setup-hook.sh" {
|
||
|
inherit sitePackages;
|
||
|
} ''
|
||
|
cp ${hook} hook.sh
|
||
|
substituteAllInPlace hook.sh
|
||
|
mv hook.sh $out
|
||
|
''
|