diff options
author | lassulus <lass@aidsballs.de> | 2016-03-02 20:51:37 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-03-02 20:51:37 +0100 |
commit | ef8ed48b1c576238e8fd6cbaef0d0208d8cc1b68 (patch) | |
tree | 15d9dc2aadbba7d0c7c6338d6441af7849cc248b /krebs/3modules/bepasty-server.nix | |
parent | 024de57e7b1918a617685b65a0c5c45ee4592e47 (diff) | |
parent | db72d5911f1556d3b1cfbe8f1a2d8f6765728952 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'krebs/3modules/bepasty-server.nix')
-rw-r--r-- | krebs/3modules/bepasty-server.nix | 8 |
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 = { |