2013-10-20 14:34:42 +01:00
|
|
|
{stdenv, fetchurl,
|
2018-01-09 15:43:51 +00:00
|
|
|
libtool, libjpeg, openssl, zlib, libgcrypt, autoreconfHook, pkgconfig, 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 {
|
|
|
|
baseName="libvncserver";
|
2017-01-11 13:25:47 +00:00
|
|
|
version="0.9.11";
|
2013-10-20 14:34:42 +01: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 14:34:42 +01:00
|
|
|
};
|
2008-10-04 16:13:31 +01:00
|
|
|
in
|
2013-10-20 14:34:42 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2008-10-04 16:13:31 +01:00
|
|
|
src = fetchurl {
|
2013-10-20 14:34:42 +01:00
|
|
|
inherit (s) url sha256;
|
2008-10-04 16:13:31 +01:00
|
|
|
};
|
2013-10-20 14:34:42 +01: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 14:34:42 +01: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 16:13:31 +01:00
|
|
|
meta = {
|
2013-10-20 14:34:42 +01: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 16:13:31 +01:00
|
|
|
};
|
|
|
|
}
|