2018-10-07 15:36:36 +00:00
|
|
|
{ stdenv, fetchurl, libclthreads, libX11, libXft, xorg, pkgconfig }:
|
2015-04-22 14:28:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libclxclient";
|
2018-10-07 15:36:36 +00:00
|
|
|
version = "3.9.2";
|
2015-05-28 04:26:17 +00:00
|
|
|
|
2015-04-22 14:28:37 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/clxclient-${version}.tar.bz2";
|
2018-10-07 15:36:36 +00:00
|
|
|
sha256 = "10bq6fy8d3pr1x2x3xx9qhf2hdxrwdgvg843a2y6lx70y1jfj0c5";
|
2015-04-22 14:28:37 +00:00
|
|
|
};
|
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ libclthreads libX11 libXft xorg.xorgproto ];
|
2015-04-22 14:28:37 +00:00
|
|
|
|
2018-10-07 15:36:36 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${xorg.xorgproto}/include -I${libXft.dev}/include";
|
2015-05-28 04:26:17 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
2018-10-07 15:36:36 +00:00
|
|
|
cd source
|
|
|
|
# use pkg-config instead of pkgcon:
|
|
|
|
sed -e 's/pkgconf/pkg-config/g' -i ./Makefile
|
|
|
|
# don't run ldconfig:
|
|
|
|
sed -e "/ldconfig/d" -i ./Makefile
|
|
|
|
# make sure it can find clxclient.h:
|
|
|
|
sed -e 's/<clxclient.h>/"clxclient.h"/' -i ./enumip.cc
|
2015-04-22 14:28:37 +00:00
|
|
|
'';
|
|
|
|
|
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";
|
2020-04-01 01:11:51 +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
|
|
|
};
|
|
|
|
}
|