2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, lv2 }:
|
2020-05-30 11:34:16 +00:00
|
|
|
|
2020-08-18 20:30:59 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-05-30 11:34:16 +00:00
|
|
|
pname = "molot-lite";
|
2020-08-18 20:30:59 +00:00
|
|
|
version = "unstable-2014-04-23";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# fetchzip does not accept urls that do not end with .zip.
|
|
|
|
url = "https://sourceforge.net/p/molot/code/ci/c4eddc426f8d5821e8ebcf1d67265365e4c8c52a/tree/molot_src.zip?format=raw";
|
|
|
|
sha256 = "1c47dwfgrmn9459px8s5zikcqyr0777v226qzcxlr6azlcjwr51b";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ lv2 ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make -C Molot_Mono_Lite
|
|
|
|
make -C Molot_Stereo_Lite
|
|
|
|
'';
|
2020-05-30 11:34:16 +00:00
|
|
|
|
2020-08-18 20:30:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite
|
|
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite
|
2020-05-30 11:34:16 +00:00
|
|
|
'';
|
2020-08-18 20:30:59 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-18 20:30:59 +00:00
|
|
|
description = "Stereo and mono audio signal dynamic range compressor in LV2 format";
|
|
|
|
homepage = "https://sourceforge.net/projects/molot/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-05-30 11:34:16 +00:00
|
|
|
}
|