libvncserver: make systemd support optional
This commit is contained in:
parent
c0172431d8
commit
7e0b4143ee
|
@ -8,6 +8,7 @@
|
||||||
, zlib
|
, zlib
|
||||||
, libgcrypt
|
, libgcrypt
|
||||||
, libpng
|
, libpng
|
||||||
|
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
||||||
, systemd
|
, systemd
|
||||||
, Carbon
|
, Carbon
|
||||||
}:
|
}:
|
||||||
|
@ -29,12 +30,16 @@ stdenv.mkDerivation rec {
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
libjpeg
|
libjpeg
|
||||||
openssl
|
openssl
|
||||||
libgcrypt
|
libgcrypt
|
||||||
libpng
|
libpng
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals withSystemd [
|
||||||
systemd
|
systemd
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
Carbon
|
Carbon
|
||||||
|
|
Loading…
Reference in a new issue