nixpkgs/pkgs/development/libraries/libvncserver/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{stdenv, fetchurl,
libtool, libjpeg, openssl, libX11, libXdamage, xproto, damageproto,
xextproto, libXext, fixesproto, libXfixes, xineramaproto, libXinerama,
2017-01-11 16:25:47 +03:00
libXrandr, randrproto, libXtst, zlib, libgcrypt, autoreconfHook
2017-01-11 16:32:02 +03:00
, systemd, pkgconfig, libpng
}:
2013-10-21 12:40:30 +04:00
assert stdenv.isLinux;
let
s = # Generated upstream information
rec {
baseName="libvncserver";
2017-01-11 16:25:47 +03:00
version="0.9.11";
name="${baseName}-${version}";
2017-01-11 16:25:47 +03:00
url="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
sha256="15189n09r1pg2nqrpgxqrcvad89cdcrca9gx6qhm6akjf81n6g8r";
};
buildInputs = [
libtool libjpeg openssl libX11 libXdamage xproto damageproto
xextproto libXext fixesproto libXfixes xineramaproto libXinerama
2017-01-11 16:25:47 +03:00
libXrandr randrproto libXtst zlib libgcrypt autoreconfHook systemd
2017-01-11 16:32:02 +03:00
pkgconfig libpng
];
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;
};
}