summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/bepasty-server.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-02-28 01:11:21 +0100
committermakefu <github@syntax-fehler.de>2016-02-28 01:11:21 +0100
commit217c4840d8ebc5ffff15bb3f9c679689a4139edb (patch)
tree6632924664e9bc0e5f1eac24086831790cf5314d /krebs/3modules/bepasty-server.nix
parentda20505f5d187f2bbe649543125f1097c6d87d85 (diff)
k 3 bepasty: create build environment for recursive package inclusion
Diffstat (limited to 'krebs/3modules/bepasty-server.nix')
-rw-r--r--krebs/3modules/bepasty-server.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/krebs/3modules/bepasty-server.nix b/krebs/3modules/bepasty-server.nix
index 9e777a5ef..cbf87b2a7 100644
--- a/krebs/3modules/bepasty-server.nix
+++ b/krebs/3modules/bepasty-server.nix
@@ -96,9 +96,13 @@ let
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
restartIfChanged = true;
- environment = {
+ environment = let
+ penv = python.buildEnv.override {
+ extraLibs = [ bepasty gevent ];
+ };
+ in {
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 = {