mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-05 04:10:19 +00:00
21 lines
252 B
Nix
21 lines
252 B
Nix
{
|
|
runCommand,
|
|
replaceVars,
|
|
}:
|
|
|
|
sitePackages:
|
|
|
|
let
|
|
hook = replaceVars ./setup-hook.sh {
|
|
inherit sitePackages;
|
|
};
|
|
in
|
|
runCommand "python-setup-hook.sh"
|
|
{
|
|
strictDeps = true;
|
|
__structuredAttrs = true;
|
|
}
|
|
''
|
|
cp ${hook} $out
|
|
''
|