2013-10-20 17:34:42 +04:00
|
|
|
{stdenv, fetchurl,
|
2018-01-09 18:43:51 +03:00
|
|
|
libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, libpng,
|
|
|
|
systemd
|
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 {
|
|
|
|
baseName="libvncserver";
|
2017-01-11 16:25:47 +03:00
|
|
|
version="0.9.11";
|
2013-10-20 17:34:42 +04:00
|
|
|
name="${baseName}-${version}";
|
2017-01-11 16:25:47 +03:00
|
|
|
url="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
|
|
|
|
sha256="15189n09r1pg2nqrpgxqrcvad89cdcrca9gx6qhm6akjf81n6g8r";
|
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 {
|
|
|
|
inherit (s) name version;
|
2008-10-04 19:13:31 +04:00
|
|
|
src = fetchurl {
|
2013-10-20 17:34:42 +04:00
|
|
|
inherit (s) url sha256;
|
2008-10-04 19:13:31 +04:00
|
|
|
};
|
2013-10-20 17:34:42 +04:00
|
|
|
preConfigure = ''
|
2014-12-17 21:11:30 +03:00
|
|
|
sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
|
2013-10-20 17:34:42 +04:00
|
|
|
'';
|
2018-01-09 18:43:51 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [
|
|
|
|
libtool libjpeg openssl libgcrypt libpng
|
|
|
|
] ++ stdenv.lib.optional stdenv.isLinux systemd;
|
|
|
|
propagatedBuildInputs = [ zlib ];
|
2008-10-04 19:13:31 +04:00
|
|
|
meta = {
|
2013-10-20 17:34:42 +04:00
|
|
|
inherit (s) version;
|
|
|
|
description = "VNC server library";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2018-01-09 18:43:51 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-10-04 19:13:31 +04:00
|
|
|
};
|
|
|
|
}
|