diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libclthreads')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libclthreads/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libclthreads/default.nix b/nixpkgs/pkgs/development/libraries/libclthreads/default.nix new file mode 100644 index 000000000000..a2f6858a05c9 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libclthreads/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "libclthreads-${version}"; + 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; + }; +} |