2015-05-05 23:23:26 +02:00
|
|
|
{ stdenv, fetchurl, fftwFloat }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zita-convolver";
|
2018-10-07 17:34:00 +02:00
|
|
|
version = "4.0.3";
|
2015-05-05 23:23:26 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
2018-10-07 17:34:00 +02:00
|
|
|
sha256 = "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs";
|
2015-05-05 23:23:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fftwFloat ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2018-10-07 17:34:00 +02:00
|
|
|
cd source
|
2015-05-05 23:23:26 +02:00
|
|
|
sed -e "s@ldconfig@@" -i Makefile
|
|
|
|
'';
|
|
|
|
|
2018-07-15 02:44:30 +02:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX="
|
|
|
|
];
|
2015-05-05 23:23:26 +02:00
|
|
|
|
2018-07-15 02:44:30 +02:00
|
|
|
postInstall = ''
|
2015-05-05 23:23:26 +02:00
|
|
|
# create lib link for building apps
|
2018-07-15 02:44:30 +02:00
|
|
|
ln -s $out/lib/libzita-convolver.so.${version} $out/lib/libzita-convolver.so.${stdenv.lib.versions.major version}
|
2015-05-05 23:23:26 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convolution library by Fons Adriaensen";
|
2019-09-09 01:38:31 +02:00
|
|
|
version = version;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html;
|
2015-05-05 23:23:26 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|