pgbouncer: build with systemd support

This commit is contained in:
Sophie Tauchert 2024-02-02 19:33:49 +01:00
parent b8b232ae7b
commit b3f483a5c2
No known key found for this signature in database
GPG Key ID: 52701DE5F5F51125

View File

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