nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{stdenv, fetchurl,
2 libtool, libjpeg, openssl, libX11, libXdamage, xproto, damageproto,
3 xextproto, libXext, fixesproto, libXfixes, xineramaproto, libXinerama,
4 libXrandr, randrproto, libXtst, zlib, libgcrypt, autoreconfHook
5 , systemd, pkgconfig, libpng
6}:
7
8assert stdenv.isLinux;
9
10let
11 s = # Generated upstream information
12 rec {
13 baseName="libvncserver";
14 version="0.9.11";
15 name="${baseName}-${version}";
16 url="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-${version}.tar.gz";
17 sha256="15189n09r1pg2nqrpgxqrcvad89cdcrca9gx6qhm6akjf81n6g8r";
18 };
19 buildInputs = [
20 libtool libjpeg openssl libX11 libXdamage xproto damageproto
21 xextproto libXext fixesproto libXfixes xineramaproto libXinerama
22 libXrandr randrproto libXtst zlib libgcrypt autoreconfHook systemd
23 pkgconfig libpng
24 ];
25in
26stdenv.mkDerivation {
27 inherit (s) name version;
28 inherit buildInputs;
29 src = fetchurl {
30 inherit (s) url sha256;
31 };
32 preConfigure = ''
33 sed -e 's@/usr/include/linux@${stdenv.cc.libc}/include/linux@g' -i configure
34 '';
35 meta = {
36 inherit (s) version;
37 description = "VNC server library";
38 license = stdenv.lib.licenses.gpl2Plus ;
39 maintainers = [stdenv.lib.maintainers.raskin];
40 platforms = stdenv.lib.platforms.linux;
41 };
42}