mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
88c9f8b574
This seems to have been confusing people, using both xlibs and xorg, etc. - Avoided renaming local (and different) xlibs binding in gcc*. - Fixed cases where both xorg and xlibs were used. Hopefully everything still works as before.
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchurl, libclthreads, libX11, libXft, xorg }:
|
|
|
|
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 libX11 libXft xorg.xproto ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${xorg.xproto}/include -I${libXft}/include";
|
|
|
|
patchPhase = ''
|
|
sed -e "s@ldconfig@@" -i Makefile
|
|
'';
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"SUFFIX=''"
|
|
];
|
|
|
|
preInstall = ''
|
|
# The Makefile does not create the include directory
|
|
mkdir -p $out/include
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln $out/lib/libclxclient.so $out/lib/libclxclient.so.3
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Zita X11 library";
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|