nixpkgs/pkgs/development/libraries/audio/zita-convolver/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

37 lines
978 B
Nix

{ stdenv, fetchurl, fftwFloat }:
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
ln -s $out/lib/libzita-convolver.so.${version} $out/lib/libzita-convolver.so.${stdenv.lib.versions.major version}
'';
meta = {
description = "Convolution library by Fons Adriaensen";
version = "${version}";
homepage = http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.magnetophon ];
platforms = stdenv.lib.platforms.linux;
};
}