summary refs log tree commit diff
path: root/pkgs/applications/audio/nova-filters/default.nix
blob: fff3582f7dfbe91c2f1b3e98c887d659db90b004 (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
{stdenv, fetchurl, scons, boost, ladspaH, pkgconfig }:

stdenv.mkDerivation rec {
  version = "0.2-2";
  name = "nova-filters-${version}";

  src = fetchurl {
    url = http://klingt.org/~tim/nova-filters/nova-filters_0.2-2.tar.gz;
    sha256 = "16064vvl2w5lz4xi3lyjk4xx7fphwsxc14ajykvndiz170q32s6i";
  };

  buildInputs = [ scons boost ladspaH pkgconfig ];

  patchPhase = ''
    # remove TERM:
    sed -i -e '4d' SConstruct
    sed -i "s@mfpmath=sse@mfpmath=sse -I ${boost.dev}/include@g" SConstruct
    sed -i "s@ladspa.h@${ladspaH}/include/ladspa.h@g" filters.cpp
    sed -i "s/= check/= detail::filter_base<internal_type, checked>::check/" nova/source/dsp/filter.hpp
  '';

  buildPhase = ''
    scons
  '';

  installPhase = ''
    scons $sconsFlags "prefix=$out" install
  '';

  meta = {
    homepage = http://klingt.org/~tim/nova-filters/;
    description = "LADSPA plugins based on filters of nova";
    license = stdenv.lib.licenses.gpl2Plus;
    platforms = stdenv.lib.platforms.linux;
  };
}