2015-09-15 09:26:18 +00:00
|
|
|
{ stdenv, fetchurl, libclthreads, libX11, libXft, xorg }:
|
2015-04-22 14:28:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libclxclient-${version}";
|
|
|
|
version = "3.9.0";
|
2015-05-28 04:26:17 +00:00
|
|
|
|
2015-04-22 14:28:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2";
|
|
|
|
sha256 = "14l7xrh964gllymraq4n5pgax94p5jsfjslqi5c6637zc4lmgnl0";
|
|
|
|
};
|
|
|
|
|
2015-09-15 09:26:18 +00:00
|
|
|
buildInputs = [ libclthreads libX11 libXft xorg.xproto ];
|
2015-04-22 14:28:37 +00:00
|
|
|
|
2016-04-16 17:55:18 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${xorg.xproto}/include -I${libXft.dev}/include";
|
2015-05-28 04:26:17 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
2015-04-22 14:28:37 +00:00
|
|
|
sed -e "s@ldconfig@@" -i Makefile
|
|
|
|
'';
|
|
|
|
|
2015-05-28 04:26:17 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX=''"
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
# The Makefile does not create the include directory
|
|
|
|
mkdir -p $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-04-22 14:28:37 +00:00
|
|
|
ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3
|
|
|
|
'';
|
|
|
|
|
2015-05-28 04:26:17 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Zita X11 library";
|
2015-04-22 14:28:37 +00:00
|
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
2015-05-28 04:26:17 +00:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
2015-04-22 14:28:37 +00:00
|
|
|
};
|
|
|
|
}
|