11 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
16 stdenv.mkDerivation rec {
17 pname = "libvncserver";
25 src = fetchFromGitHub {
27 repo = "libvncserver";
28 rev = "LibVNCServer-${version}";
29 sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
33 # fix generated pkg-config files
42 "-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
52 ++ lib.optionals withSystemd [
55 ++ lib.optionals stdenv.hostPlatform.isDarwin [
59 propagatedBuildInputs = [
64 description = "VNC server library";
65 homepage = "https://libvnc.github.io/";
66 license = licenses.gpl2Plus;
67 maintainers = with maintainers; [ raskin ];
68 platforms = platforms.unix;