nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 43 lines 1.3 kB view raw
1{stdenv, fetchurl, fetchpatch, 2 libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng, 3 systemd 4}: 5 6let 7 s = # Generated upstream information 8 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"; 14 }; 15in 16stdenv.mkDerivation { 17 inherit (s) name version; 18 src = fetchurl { 19 inherit (s) url sha256; 20 }; 21 patches = [ 22 # CVE-2018-7225. Remove with the next release 23 (fetchpatch { 24 url = https://salsa.debian.org/debian/libvncserver/raw/master/debian/patches/CVE-2018-7225.patch; 25 sha256 = "1hj1lzxsrdmzzl061vg0ncdpvfmvvkrpk8q12mp70qvszcqa7ja3"; 26 }) 27 ]; 28 preConfigure = '' 29 sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure 30 ''; 31 nativeBuildInputs = [ pkgconfig autoreconfHook ]; 32 buildInputs = [ 33 libtool libjpeg openssl libgcrypt libpng 34 ] ++ stdenv.lib.optional stdenv.isLinux systemd; 35 propagatedBuildInputs = [ zlib ]; 36 meta = { 37 inherit (s) version; 38 description = "VNC server library"; 39 license = stdenv.lib.licenses.gpl2Plus ; 40 maintainers = [stdenv.lib.maintainers.raskin]; 41 platforms = stdenv.lib.platforms.unix; 42 }; 43}