Merge pull request #230053 from hmenke/libvncserver

libvncserver: make systemd support optional
This commit is contained in:
Robert Scott 2023-05-06 22:27:48 +01:00 committed by GitHub
commit 76f69e9355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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