summary refs log tree commit diff
path: root/pkgs/applications/audio/ir.lv2/default.nix
blob: 804d6e7d4e41ea8c2f806f43158e77eb63873f8c (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
34
35
36
37
38
39
40
{ stdenv, fetchurl, fftw, gtk, lv2, libsamplerate, libsndfile, pkgconfig, zita-convolver }:

stdenv.mkDerivation rec {
  name = "ir.lv2-${version}";
  version = "1.2.2";

  src = fetchurl {
    url = "http://factorial.hu/system/files/${name}.tar.gz";
    sha256 = "17a6h2mv9xv41jpbx6bdakkngin4kqzh2v67l4076ddq609k5a7v";
  };

  buildInputs = [ fftw gtk lv2 libsamplerate libsndfile pkgconfig zita-convolver ];

  buildPhase = ''
    make
    make convert4chan
  '';

  installPhase = ''
    mkdir "$out/bin"
    mkdir "$out/include"
    mkdir "$out/share"
    mkdir "$out/share/doc"

    make PREFIX="$out" install
    install -Dm755 convert4chan "$out/bin/convert4chan"
    # fixed location
    sed -i 's/, but seem like its gone://' README
    sed -i  's@rhythminmind.net/1313@rhythminmind.net/STN@' README
    install -Dm644 README "$out/share/doc/README"
  '';

  meta = with stdenv.lib; {
    homepage = http://factorial.hu/plugins/lv2/ir;
    description = "Zero-latency, realtime, high performance signal convolver especially for creating reverb effects";
    license = licenses.gpl2;
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.linux;
  };
}