1 { lib, stdenv, fetchurl, libclthreads, libX11, libXft, xorg, pkg-config }:
3 stdenv.mkDerivation rec {
4 pname = "libclxclient";
8 url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2";
9 sha256 = "10bq6fy8d3pr1x2x3xx9qhf2hdxrwdgvg843a2y6lx70y1jfj0c5";
12 buildInputs = [ libclthreads libX11 libXft xorg.xorgproto ];
14 nativeBuildInputs = [ pkg-config ];
16 env.NIX_CFLAGS_COMPILE = "-I${xorg.xorgproto}/include -I${libXft.dev}/include";
20 # use pkg-config instead of pkgcon:
21 sed -e 's/pkgconf/pkg-config/g' -i ./Makefile
23 sed -e "/ldconfig/d" -i ./Makefile
24 # make sure it can find clxclient.h:
25 sed -e 's/<clxclient.h>/"clxclient.h"/' -i ./enumip.cc
34 # The Makefile does not create the include directory
39 ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3
43 description = "Zita X11 library";
44 homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
45 license = licenses.lgpl21;
46 maintainers = with maintainers; [ magnetophon ];
47 platforms = platforms.linux;