2021-01-21 20:00:13 +03:00
|
|
|
{ lib, stdenv, fetchzip, fetchpatch, cmake
|
2019-11-29 21:14:40 +03:00
|
|
|
, libjpeg, openssl, zlib, libgcrypt, libpng
|
2021-05-17 21:52:30 +03:00
|
|
|
, systemd, Carbon
|
2013-10-20 17:34:42 +04:00
|
|
|
}:
|
2013-10-21 12:40:30 +04:00
|
|
|
|
2013-10-20 17:34:42 +04:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
2019-11-29 21:14:40 +03:00
|
|
|
pname = "libvncserver";
|
2020-06-26 00:34:02 +03:00
|
|
|
version = "0.9.13";
|
2019-11-29 21:14:40 +03:00
|
|
|
url = "https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
|
2020-06-26 00:34:02 +03:00
|
|
|
sha256 = "0zz0hslw8b1p3crnfy3xnmrljik359h83dpk64s697dqdcrzy141"; # unpacked archive checksum
|
2013-10-20 17:34:42 +04:00
|
|
|
};
|
2008-10-04 19:13:31 +04:00
|
|
|
in
|
2013-10-20 17:34:42 +04:00
|
|
|
stdenv.mkDerivation {
|
2019-11-29 21:14:40 +03:00
|
|
|
inherit (s) pname version;
|
|
|
|
src = fetchzip {
|
2013-10-20 17:34:42 +04:00
|
|
|
inherit (s) url sha256;
|
2008-10-04 19:13:31 +04:00
|
|
|
};
|
2020-06-26 00:34:02 +03:00
|
|
|
|
2019-11-29 21:14:40 +03:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-05-17 21:52:30 +03:00
|
|
|
buildInputs = [ libjpeg openssl libgcrypt libpng ]
|
|
|
|
++ lib.optional stdenv.isLinux systemd
|
|
|
|
++ lib.optional stdenv.isDarwin Carbon;
|
2018-01-09 18:43:51 +03:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2021-05-17 21:52:30 +03:00
|
|
|
|
2008-10-04 19:13:31 +04:00
|
|
|
meta = {
|
2013-10-20 17:34:42 +04:00
|
|
|
inherit (s) version;
|
2019-11-29 21:14:40 +03:00
|
|
|
description = "VNC server library";
|
|
|
|
homepage = "https://libvnc.github.io/";
|
2021-01-21 20:00:13 +03:00
|
|
|
license = lib.licenses.gpl2Plus ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2008-10-04 19:13:31 +04:00
|
|
|
};
|
|
|
|
}
|