2024-05-02 00:46:19 +00:00
|
|
|
{ runCommand }:
|
|
|
|
|
|
|
|
sitePackages:
|
|
|
|
|
2024-05-13 21:24:10 +00:00
|
|
|
let hook = ./setup-hook.sh;
|
2024-05-02 00:46:19 +00:00
|
|
|
in runCommand "python-setup-hook.sh" {
|
|
|
|
strictDeps = true;
|
2024-05-13 21:24:10 +00:00
|
|
|
env = { inherit sitePackages; };
|
2024-05-02 00:46:19 +00:00
|
|
|
} ''
|
|
|
|
cp ${hook} hook.sh
|
|
|
|
substituteAllInPlace hook.sh
|
|
|
|
mv hook.sh $out
|
|
|
|
''
|