28b6fb61e6
This is done for the sake of Yosemite, which does not have gcc, and yet this change is also compatible with Linux.
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{stdenv, fetchurl,
|
|
libtool, libjpeg, openssl, libX11, libXdamage, xproto, damageproto,
|
|
xextproto, libXext, fixesproto, libXfixes, xineramaproto, libXinerama,
|
|
libXrandr, randrproto, libXtst, zlib
|
|
}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
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 = [
|
|
libtool libjpeg openssl libX11 libXdamage xproto damageproto
|
|
xextproto libXext fixesproto libXfixes xineramaproto libXinerama
|
|
libXrandr randrproto libXtst zlib
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
inherit buildInputs;
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
preConfigure = ''
|
|
sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
|
|
'';
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "VNC server library";
|
|
license = stdenv.lib.licenses.gpl2Plus ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|