Merge pull request #51655 from joachifm/uwsgi-withSystemd

uwsgi: fix build when withSystemd = false
This commit is contained in:
Joachim F 2018-12-07 14:46:36 +00:00 committed by GitHub
commit 82579f80a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/;