0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
16 lines
241 B
Nix
16 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
|
|
''
|