1{ stdenv, fetchurl, autoreconfHook, libjpeg, libpng12, libX11, zlib }:
2
3let version = "3.5.0.32"; in
4stdenv.mkDerivation {
5 name = "libxcomp-${version}";
6
7 src = fetchurl {
8 sha256 = "02n5bdc1jsq999agb4w6dmdj5l2wlln2lka84qz6rpswwc59zaxm";
9 url = "http://code.x2go.org/releases/source/nx-libs/nx-libs-${version}-lite.tar.gz";
10 };
11
12 meta = with stdenv.lib; {
13 inherit version;
14 description = "NX compression library";
15 homepage = "http://wiki.x2go.org/doku.php/wiki:libs:nx-libs";
16 license = licenses.gpl2;
17 platforms = with platforms; linux;
18 maintainers = with maintainers; [ nckx ];
19 };
20
21 buildInputs = [ libjpeg libpng12 libX11 zlib ];
22 nativeBuildInputs = [ autoreconfHook ];
23
24 preAutoreconf = ''
25 cd nxcomp/
26 '';
27
28 enableParallelBuilding = true;
29}