10 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
15 stdenv.mkDerivation rec {
16 pname = "libvncserver";
19 outputs = [ "out" "dev" ];
21 src = fetchFromGitHub {
23 repo = "libvncserver";
24 rev = "LibVNCServer-${version}";
25 sha256 = "sha256-kqVZeCTp+Z6BtB6nzkwmtkJ4wtmjlSQBg05lD02cVvQ=";
29 # fix generated pkg-config files
38 "-DWITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
46 ] ++ lib.optionals withSystemd [
48 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
52 propagatedBuildInputs = [
57 description = "VNC server library";
58 homepage = "https://libvnc.github.io/";
59 license = licenses.gpl2Plus;
60 maintainers = with maintainers; [ raskin ];
61 platforms = platforms.unix;