{ stdenv, fetchurl, libclthreads, libXft, libX11, xlibs }: stdenv.mkDerivation rec { name = "libclxclient-${version}"; version = "3.9.0"; src = fetchurl { url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2"; sha256 = "14l7xrh964gllymraq4n5pgax94p5jsfjslqi5c6637zc4lmgnl0"; }; buildInputs = [ libclthreads libXft libX11 xlibs.xproto ]; configurePhase = '' cpp -v export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${xlibs.xproto}/include" export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXft}/include" echo $NIX_CFLAGS_COMPILE sed -e "s@/usr/local@$out@" -i Makefile sed -e "s@#include @#include <${libclthreads}/include>@" -i clxclient.h sed -e "s@ldconfig@@" -i Makefile sed -e "s@SUFFIX :=.*@SUFFIX =@" -i Makefile ''; fixupPhase = '' ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3 ''; meta = { description = "zita X11 library"; version = "${version}"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"; license = stdenv.lib.licenses.lgpl21; maintainers = [ stdenv.lib.maintainers.magnetophon ]; platforms = stdenv.lib.platforms.linux; }; }