2015-05-28 06:53:23 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2015-04-22 15:28:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libclthreads";
|
2018-10-07 16:35:56 +01:00
|
|
|
version = "2.4.2";
|
2015-05-28 06:53:23 +01:00
|
|
|
|
2015-04-22 15:28:37 +01:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/clthreads-${version}.tar.bz2";
|
2018-10-07 16:35:56 +01:00
|
|
|
sha256 = "0cbs1w89q8wfjrrhvxf6xk0y02nkjl5hd0yb692c8ma01i6b2nf6";
|
2015-04-22 15:28:37 +01:00
|
|
|
};
|
|
|
|
|
2015-05-28 06:53:23 +01:00
|
|
|
patchPhase = ''
|
2018-10-07 16:35:56 +01:00
|
|
|
cd source
|
|
|
|
# don't run ldconfig:
|
|
|
|
sed -e "/ldconfig/d" -i ./Makefile
|
2015-05-28 06:53:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX=''"
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
2018-10-07 16:35:56 +01:00
|
|
|
# The Makefile does not create the include and lib directories
|
2015-05-28 06:53:23 +01:00
|
|
|
mkdir -p $out/include
|
2018-10-07 16:35:56 +01:00
|
|
|
mkdir -p $out/lib
|
2015-05-28 06:53:23 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2018-10-07 16:35:56 +01:00
|
|
|
ln $out/lib/libclthreads.so $out/lib/libclthreads.so.2
|
2015-04-22 15:28:37 +01:00
|
|
|
'';
|
|
|
|
|
2015-05-28 06:53:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Zita thread library";
|
|
|
|
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
2015-04-22 15:28:37 +01:00
|
|
|
};
|
|
|
|
}
|