mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
pgbouncer: build with systemd support
This commit is contained in:
parent
b8b232ae7b
commit
b3f483a5c2
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, openssl, libevent, c-ares, pkg-config, nixosTests }:
|
||||
{ lib, stdenv, fetchurl, openssl, libevent, c-ares, pkg-config, systemd, nixosTests }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pgbouncer";
|
||||
@ -10,8 +10,10 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ libevent openssl c-ares ];
|
||||
buildInputs = [ libevent openssl c-ares ]
|
||||
++ lib.optional stdenv.isLinux systemd;
|
||||
enableParallelBuilding = true;
|
||||
configureFlags = lib.optional stdenv.isLinux "--with-systemd";
|
||||
|
||||
passthru.tests = {
|
||||
pgbouncer = nixosTests.pgbouncer;
|
||||
|
Loading…
Reference in New Issue
Block a user