2021-12-08 13:45:04 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, lv2, cairo, pkg-config }:
|
2021-05-22 03:25:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-30 13:34:16 +02:00
|
|
|
|
|
|
|
pname = "molot-lite";
|
2021-12-08 13:45:04 +01:00
|
|
|
version = "1.1.0";
|
2020-08-18 22:30:59 +02:00
|
|
|
|
2021-05-22 03:25:12 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnetophon";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-08 13:45:04 +01:00
|
|
|
sha256 = "sha256-0tmobsdCNon6udbkbQw7+EYQKBg2oaXlHIgNEf9U3XE=";
|
2020-08-18 22:30:59 +02:00
|
|
|
};
|
|
|
|
|
2021-12-08 13:45:04 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ lv2 cairo ];
|
2020-08-18 22:30:59 +02:00
|
|
|
|
2021-05-22 03:25:12 +02:00
|
|
|
makeFlags = [ "INSTALL_DIR=$out/lib/lv2" ];
|
2020-05-30 13:34:16 +02:00
|
|
|
|
2020-08-18 22:30:59 +02:00
|
|
|
installPhase = ''
|
2021-05-22 03:25:12 +02:00
|
|
|
runHook preInstall
|
2020-08-18 22:30:59 +02:00
|
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite
|
|
|
|
make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite
|
2021-05-22 03:25:12 +02:00
|
|
|
runHook postInstall
|
2020-05-30 13:34:16 +02:00
|
|
|
'';
|
2020-08-18 22:30:59 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-18 22:30:59 +02:00
|
|
|
description = "Stereo and mono audio signal dynamic range compressor in LV2 format";
|
2021-05-22 03:25:12 +02:00
|
|
|
homepage = "https://github.com/magnetophon/molot-lite";
|
2020-08-18 22:30:59 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-05-30 13:34:16 +02:00
|
|
|
}
|