2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, fftwFloat }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zita-convolver";
|
|
|
|
version = "4.0.3";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "0prji66p86z2bzminywkwchr5bfgxcg2i8y803pydd1hzf2198cs";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fftwFloat ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
cd source
|
|
|
|
sed -e "s@ldconfig@@" -i Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"SUFFIX="
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# create lib link for building apps
|
2021-02-05 17:12:51 +00:00
|
|
|
ln -s $out/lib/libzita-convolver.so.${version} $out/lib/libzita-convolver.so.${lib.versions.major version}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Convolution library by Fons Adriaensen";
|
|
|
|
version = version;
|
|
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|