34 lines
1.2 KiB
Nix
34 lines
1.2 KiB
Nix
{lib, stdenv, fetchurl, scons, boost, ladspaH, pkg-config }:
|
|
|
|
stdenv.mkDerivation {
|
|
version = "0.2-2";
|
|
pname = "nova-filters";
|
|
|
|
src = fetchurl {
|
|
url = "https://klingt.org/~tim/nova-filters/nova-filters_0.2-2.tar.gz";
|
|
sha256 = "16064vvl2w5lz4xi3lyjk4xx7fphwsxc14ajykvndiz170q32s6i";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config scons ];
|
|
buildInputs = [ boost ladspaH ];
|
|
|
|
patchPhase = ''
|
|
# remove TERM:
|
|
sed -i -e '4d' SConstruct
|
|
sed -i 's@Options@Variables@g' SConstruct
|
|
sed -i "s@-fomit-frame-pointer -ffast-math -mfpmath=sse@-I ${boost.dev}/include@g" SConstruct
|
|
sed -i "s@env.has_key('cxx')@'cxx' in env@g" SConstruct
|
|
sed -i "s@ladspa.h@${ladspaH}/include/ladspa.h@g" filters.cpp
|
|
sed -i "s@LADSPA_HINT_SAMPLE_RATE, 0, 0.5@LADSPA_HINT_SAMPLE_RATE, 0.0001, 0.5@g" filters.cpp
|
|
sed -i "s/= check/= detail::filter_base<internal_type, checked>::check/" nova/source/dsp/filter.hpp
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "LADSPA plugins based on filters of nova";
|
|
homepage = "http://klingt.org/~tim/nova-filters/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = [ maintainers.magnetophon ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|