3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/audio/zita-convolver/default.nix

37 lines
976 B
Nix
Raw Normal View History

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