aboutsummaryrefslogtreecommitdiff
path: root/pkgs/servers/uwsgi
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2018-12-07 13:23:09 +0100
committerJoachim Fasting <joachifm@fastmail.fm>2018-12-07 13:25:06 +0100
commite7548891e3fe44c486a479f788a70fb994b61ad4 (patch)
tree03c78921ee92fdfc97f9fe44e724a77d1a10af59 /pkgs/servers/uwsgi
parentc26dbef830a2bc10a0cee7f77936af83116597df (diff)
uwsgi: fix build when withSystemd = false
Passing -lsystemd unconditionally breaks the build when withSystemd = false.
Diffstat (limited to 'pkgs/servers/uwsgi')
-rw-r--r--pkgs/servers/uwsgi/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix
index dd397598c97b..074b19724d28 100644
--- a/pkgs/servers/uwsgi/default.nix
+++ b/pkgs/servers/uwsgi/default.nix
@@ -89,7 +89,7 @@ stdenv.mkDerivation rec {
${lib.concatMapStringsSep "\n" (x: x.install or "") needed}
'';
- NIX_CFLAGS_LINK = [ "-lsystemd" ] ++ lib.concatMap (x: x.NIX_CFLAGS_LINK or []) needed;
+ NIX_CFLAGS_LINK = lib.optional withSystemd "-lsystemd" ++ lib.concatMap (x: x.NIX_CFLAGS_LINK or []) needed;
meta = with stdenv.lib; {
homepage = https://uwsgi-docs.readthedocs.org/en/latest/;