summary refs log tree commit diff
path: root/pkgs/development/libraries/audio/zita-convolver/default.nix
blob: 578bc7f4a2dc4cd51239146bf2ee63425e5acf0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, fftwFloat }:

stdenv.mkDerivation rec {
  name = "zita-convolver-${version}";
  version = "3.1.0";
  src = fetchurl {
    url = "http://kokkinizita.linuxaudio.org/linuxaudio/downloads/${name}.tar.bz2";
    sha256 = "14qrnczhp5mbwhky64il7kxc4hl1mmh495v60va7i2qnhasr6zmz";
  };

  buildInputs = [ fftwFloat ];

  patchPhase = ''
    cd libs
    sed -e "s@ldconfig@@" -i Makefile
  '';

  installPhase = ''
    make PREFIX="$out" SUFFIX="" install

    # create lib link for building apps
    ln -s $out/lib/libzita-convolver.so.$version $out/lib/libzita-convolver.so.3
  '';

  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;
  };
}