mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
services.bepasty: buildEnv for creating PYTHONPATH
Fixes 'You need gevent installed to use this worker.' as well as missing Flask deps.
This commit is contained in:
parent
de124cfa79
commit
3f7c600666
@ -103,9 +103,13 @@ in
|
|||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
restartIfChanged = true;
|
restartIfChanged = true;
|
||||||
|
|
||||||
environment = {
|
environment = let
|
||||||
|
penv = python.buildEnv.override {
|
||||||
|
extraLibs = [ bepasty gevent ];
|
||||||
|
};
|
||||||
|
in {
|
||||||
BEPASTY_CONFIG = "${server.workDir}/bepasty-${name}.conf";
|
BEPASTY_CONFIG = "${server.workDir}/bepasty-${name}.conf";
|
||||||
PYTHONPATH= "${bepasty}/lib/${python.libPrefix}/site-packages:${gevent}/lib/${python.libPrefix}/site-packages";
|
PYTHONPATH= "${penv}/${python.sitePackages}/";
|
||||||
};
|
};
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Loading…
Reference in New Issue
Block a user