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