2013-10-20 15:34:42 +02:00
|
|
|
{stdenv, fetchurl,
|
|
|
|
libtool, libjpeg, openssl, libX11, libXdamage, xproto, damageproto,
|
|
|
|
xextproto, libXext, fixesproto, libXfixes, xineramaproto, libXinerama,
|
|
|
|
libXrandr, randrproto, libXtst, zlib
|
|
|
|
}:
|
2013-10-21 10:40:30 +02:00
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
2013-10-20 15:34:42 +02:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="libvncserver";
|
|
|
|
version="0.9.9";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
hash="1y83z31wbjivbxs60kj8a8mmjmdkgxlvr2x15yz95yy24lshs1ng";
|
|
|
|
url="mirror://sourceforge/project/libvncserver/libvncserver/0.9.9/LibVNCServer-0.9.9.tar.gz";
|
|
|
|
sha256="1y83z31wbjivbxs60kj8a8mmjmdkgxlvr2x15yz95yy24lshs1ng";
|
|
|
|
};
|
|
|
|
buildInputs = [
|
2008-10-04 17:13:31 +02:00
|
|
|
libtool libjpeg openssl libX11 libXdamage xproto damageproto
|
|
|
|
xextproto libXext fixesproto libXfixes xineramaproto libXinerama
|
|
|
|
libXrandr randrproto libXtst zlib
|
|
|
|
];
|
|
|
|
in
|
2013-10-20 15:34:42 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
2008-10-04 17:13:31 +02:00
|
|
|
src = fetchurl {
|
2013-10-20 15:34:42 +02:00
|
|
|
inherit (s) url sha256;
|
2008-10-04 17:13:31 +02:00
|
|
|
};
|
2013-10-20 15:34:42 +02:00
|
|
|
preConfigure = ''
|
2014-12-17 19:11:30 +01:00
|
|
|
sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
|
2013-10-20 15:34:42 +02:00
|
|
|
'';
|
2008-10-04 17:13:31 +02:00
|
|
|
meta = {
|
2013-10-20 15:34:42 +02:00
|
|
|
inherit (s) version;
|
|
|
|
description = "VNC server library";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-10-04 17:13:31 +02:00
|
|
|
};
|
|
|
|
}
|