nixpkgs-suyu/pkgs/development/libraries/libclthreads/default.nix

41 lines
961 B
Nix
Raw Normal View History

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libclthreads-${version}";
2018-10-07 17:35:56 +02:00
version = "2.4.2";
src = fetchurl {
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/clthreads-${version}.tar.bz2";
2018-10-07 17:35:56 +02:00
sha256 = "0cbs1w89q8wfjrrhvxf6xk0y02nkjl5hd0yb692c8ma01i6b2nf6";
};
patchPhase = ''
2018-10-07 17:35:56 +02:00
cd source
# don't run ldconfig:
sed -e "/ldconfig/d" -i ./Makefile
'';
makeFlags = [
"PREFIX=$(out)"
"SUFFIX=''"
];
preInstall = ''
2018-10-07 17:35:56 +02:00
# The Makefile does not create the include and lib directories
mkdir -p $out/include
2018-10-07 17:35:56 +02:00
mkdir -p $out/lib
'';
postInstall = ''
2018-10-07 17:35:56 +02:00
ln $out/lib/libclthreads.so $out/lib/libclthreads.so.2
'';
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;
};
}