postgresql: conditionalize systemd (on darwin)

This commit is contained in:
Domen Kožar
2018-11-27 19:38:54 +00:00
parent d04fedd715
commit f31ea5a2d5

View File

@@ -16,7 +16,8 @@ let
setOutputFlags = false; # $out retains configureFlags :-/
buildInputs =
[ zlib readline openssl libxml2 makeWrapper systemd ]
[ zlib readline openssl libxml2 makeWrapper ]
++ lib.optionals (atLeast "9.6" && !stdenv.isDarwin) [ systemd ]
++ lib.optionals (!stdenv.isDarwin) [ libossp_uuid ];
enableParallelBuilding = true;