git.iko.soy/typeable/nixpkgs
on master help sign in
libvncserver: 0.9.11 -> 0.9.12 (#74514)

Vuln roundup #73664 -- unstable channel Version bump from 0.9.11 to 0.9.12 fixes: * CVE-2018-6307 * CVE-2018-15126 * CVE-2018-15127 * CVE-2018-20019 * CVE-2018-20020 * CVE-2018-20021 * CVE-2018-20022 * CVE-2018-20023 * CVE-2018-20024 * CVE-2018-20748 * CVE-2018-20749 Plus add two upstream patches to fix: * CVE-2018-20750 * CVE-2019-15681

commit3fb4e09812bb17d0d33087dc7c3255eccec2e5fb authorRenaud <c0bw3b@users.noreply.github.com> dateFri 29 Nov 2019, 19:14 (7 years ago) parentd016a50
1 file changed+21−19
pkgs/development/libraries/libvncserver/default.nix+21−19
pkgs/development/libraries/libvncserver/default.nix+21−19
@@ -1,41 +1,43 @@
1−{stdenv, fetchurl, fetchpatch,
2− libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng,
3− systemd
1+{ stdenv, fetchzip, fetchpatch, cmake
2+, libjpeg, openssl, zlib, libgcrypt, libpng
3+, systemd
44}:
55
66let
77 s = # Generated upstream information
88 rec {
9− baseName="libvncserver";
10− version="0.9.11";
11− name="${baseName}-${version}";
12− url="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
13− sha256="15189n09r1pg2nqrpgxqrcvad89cdcrca9gx6qhm6akjf81n6g8r";
9+ pname = "libvncserver";
10+ version = "0.9.12";
11+ url = "https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
12+ sha256 = "1226hb179l914919f5nm2mlf8rhaarqbf48aa649p4rwmghyx9vm"; # unpacked archive checksum
1413 };
1514in
1615stdenv.mkDerivation {
17− inherit (s) name version;
18− src = fetchurl {
16+ inherit (s) pname version;
17+ src = fetchzip {
1918 inherit (s) url sha256;
2019 };
2120 patches = [
22− # CVE-2018-7225. Remove with the next release
2321 (fetchpatch {
24− url = https://salsa.debian.org/debian/libvncserver/raw/master/debian/patches/CVE-2018-7225.patch;
25− sha256 = "1hj1lzxsrdmzzl061vg0ncdpvfmvvkrpk8q12mp70qvszcqa7ja3";
22+ name = "CVE-2018-20750.patch";
23+ url = "https://github.com/LibVNC/libvncserver/commit/09e8fc02f59f16e2583b34fe1a270c238bd9ffec.patch";
24+ sha256 = "004h50786nvjl3y3yazpsi2b767vc9gqrwm1ralj3zgy47kwfhqm";
25+ })
26+ (fetchpatch {
27+ name = "CVE-2019-15681.patch";
28+ url = "https://github.com/LibVNC/libvncserver/commit/d01e1bb4246323ba6fcee3b82ef1faa9b1dac82a.patch";
29+ sha256 = "0hf0ss7all2m50z2kan4mck51ws44yim4ymn8p0d991y465y6l9s";
2630 })
2731 ];
28− preConfigure = ''
29− sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
30− '';
31− nativeBuildInputs = [ pkgconfig autoreconfHook ];
32+ nativeBuildInputs = [ cmake ];
3233 buildInputs = [
33− libtool libjpeg openssl libgcrypt libpng
34+ libjpeg openssl libgcrypt libpng
3435 ] ++ stdenv.lib.optional stdenv.isLinux systemd;
3536 propagatedBuildInputs = [ zlib ];
3637 meta = {
3738 inherit (s) version;
38− description = "VNC server library";
39+ description = "VNC server library";
40+ homepage = "https://libvnc.github.io/";
3941 license = stdenv.lib.licenses.gpl2Plus ;
4042 maintainers = [stdenv.lib.maintainers.raskin];
4143 platforms = stdenv.lib.platforms.unix;