Unverified Commit 76f69e93 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

Merge pull request #230053 from hmenke/libvncserver

libvncserver: make systemd support optional
parents 81f51312 7e0b4143
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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