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