2018-12-17 00:37:12 +00:00
|
|
|
{stdenv, fetchurl, fetchpatch,
|
2018-01-09 15:43:51 +00:00
|
|
|
libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng,
|
|
|
|
systemd
|
2013-10-20 13:34:42 +00:00
|
|
|
}:
|
2013-10-21 08:40:30 +00:00
|
|
|
|
2013-10-20 13:34:42 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="libvncserver";
|
2017-01-11 13:25:47 +00:00
|
|
|
version="0.9.11";
|
2013-10-20 13:34:42 +00:00
|
|
|
name="${baseName}-${version}";
|
2017-01-11 13:25:47 +00:00
|
|
|
url="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
|
|
|
|
sha256="15189n09r1pg2nqrpgxqrcvad89cdcrca9gx6qhm6akjf81n6g8r";
|
2013-10-20 13:34:42 +00:00
|
|
|
};
|
2008-10-04 15:13:31 +00:00
|
|
|
in
|
2013-10-20 13:34:42 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2008-10-04 15:13:31 +00:00
|
|
|
src = fetchurl {
|
2013-10-20 13:34:42 +00:00
|
|
|
inherit (s) url sha256;
|
2008-10-04 15:13:31 +00:00
|
|
|
};
|
2018-12-17 00:37:12 +00:00
|
|
|
patches = [
|
|
|
|
# CVE-2018-7225. Remove with the next release
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://salsa.debian.org/debian/libvncserver/raw/master/debian/patches/CVE-2018-7225.patch;
|
|
|
|
sha256 = "1hj1lzxsrdmzzl061vg0ncdpvfmvvkrpk8q12mp70qvszcqa7ja3";
|
|
|
|
})
|
|
|
|
];
|
2013-10-20 13:34:42 +00:00
|
|
|
preConfigure = ''
|
2014-12-17 18:11:30 +00:00
|
|
|
sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
|
2013-10-20 13:34:42 +00:00
|
|
|
'';
|
2018-01-09 15:43:51 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [
|
|
|
|
libtool libjpeg openssl libgcrypt libpng
|
|
|
|
] ++ stdenv.lib.optional stdenv.isLinux systemd;
|
|
|
|
propagatedBuildInputs = [ zlib ];
|
2008-10-04 15:13:31 +00:00
|
|
|
meta = {
|
2013-10-20 13:34:42 +00:00
|
|
|
inherit (s) version;
|
|
|
|
description = "VNC server library";
|
|
|
|
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 15:13:31 +00:00
|
|
|
};
|
|
|
|
}
|