2020-04-24 23:36:52 +00:00
|
|
|
{ runCommand }:
|
|
|
|
|
|
|
|
sitePackages:
|
|
|
|
|
|
|
|
let
|
|
|
|
hook = ./setup-hook.sh;
|
|
|
|
in runCommand "python-setup-hook.sh" {
|
2022-06-16 17:23:12 +00:00
|
|
|
strictDeps = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
env = {
|
|
|
|
inherit sitePackages;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
} ''
|
|
|
|
cp ${hook} hook.sh
|
|
|
|
substituteAllInPlace hook.sh
|
|
|
|
mv hook.sh $out
|
|
|
|
''
|