Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 63 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libclthreads, 6 libX11, 7 libXft, 8 xorg, 9 pkg-config, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "libclxclient"; 14 version = "3.9.2"; 15 16 src = fetchurl { 17 url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2"; 18 sha256 = "10bq6fy8d3pr1x2x3xx9qhf2hdxrwdgvg843a2y6lx70y1jfj0c5"; 19 }; 20 21 buildInputs = [ 22 libclthreads 23 libX11 24 libXft 25 xorg.xorgproto 26 ]; 27 28 nativeBuildInputs = [ pkg-config ]; 29 30 env.NIX_CFLAGS_COMPILE = "-I${xorg.xorgproto}/include -I${libXft.dev}/include"; 31 32 patchPhase = '' 33 cd source 34 # use pkg-config instead of pkgcon: 35 sed -e 's/pkgconf/pkg-config/g' -i ./Makefile 36 # don't run ldconfig: 37 sed -e "/ldconfig/d" -i ./Makefile 38 # make sure it can find clxclient.h: 39 sed -e 's/<clxclient.h>/"clxclient.h"/' -i ./enumip.cc 40 ''; 41 42 makeFlags = [ 43 "PREFIX=$(out)" 44 "SUFFIX=''" 45 ]; 46 47 preInstall = '' 48 # The Makefile does not create the include directory 49 mkdir -p $out/include 50 ''; 51 52 postInstall = '' 53 ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3 54 ''; 55 56 meta = with lib; { 57 description = "Zita X11 library"; 58 homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html"; 59 license = licenses.lgpl21; 60 maintainers = with maintainers; [ magnetophon ]; 61 platforms = platforms.linux; 62 }; 63}