depot/third_party/nixpkgs/pkgs/development/libraries/libclthreads/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

40 lines
953 B
Nix

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