at 18.03-beta 41 lines 1.1 kB view raw
1{ stdenv, fetchurl, libclthreads, libX11, libXft, xorg }: 2 3stdenv.mkDerivation rec { 4 name = "libclxclient-${version}"; 5 version = "3.9.0"; 6 7 src = fetchurl { 8 url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2"; 9 sha256 = "14l7xrh964gllymraq4n5pgax94p5jsfjslqi5c6637zc4lmgnl0"; 10 }; 11 12 buildInputs = [ libclthreads libX11 libXft xorg.xproto ]; 13 14 NIX_CFLAGS_COMPILE = "-I${xorg.xproto}/include -I${libXft.dev}/include"; 15 16 patchPhase = '' 17 sed -e "s@ldconfig@@" -i Makefile 18 ''; 19 20 makeFlags = [ 21 "PREFIX=$(out)" 22 "SUFFIX=''" 23 ]; 24 25 preInstall = '' 26 # The Makefile does not create the include directory 27 mkdir -p $out/include 28 ''; 29 30 postInstall = '' 31 ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3 32 ''; 33 34 meta = with stdenv.lib; { 35 description = "Zita X11 library"; 36 homepage = http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html; 37 license = licenses.lgpl21; 38 maintainers = with maintainers; [ magnetophon ]; 39 platforms = platforms.linux; 40 }; 41}