libvncserver: make systemd support optional

This commit is contained in:
Henri Menke 2023-05-05 09:08:00 +02:00
parent c0172431d8
commit 7e0b4143ee
No known key found for this signature in database
GPG key ID: FB7AD61E3D806382

View file

@ -8,6 +8,7 @@
, zlib
, libgcrypt
, libpng
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
, Carbon
}:
@ -29,12 +30,16 @@ stdenv.mkDerivation rec {
cmake
];
cmakeFlags = [
"-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
];
buildInputs = [
libjpeg
openssl
libgcrypt
libpng
] ++ lib.optionals stdenv.isLinux [
] ++ lib.optionals withSystemd [
systemd
] ++ lib.optionals stdenv.isDarwin [
Carbon