molot-lite: use fork with bugfix and extra features

The original only had the mono version working; the stereo one just
passed the sound.

https://github.com/magnetophon/molot-lite/commit/06c055a94709f06ebc2537eb45bdfd45cd9a5127

+13 -17
+13 -17
pkgs/applications/audio/molot-lite/default.nix
··· 1 - { lib, stdenv, fetchurl, unzip, lv2 }: 1 + { lib, stdenv, fetchFromGitHub, lv2 }: 2 2 3 - stdenv.mkDerivation { 3 + stdenv.mkDerivation rec { 4 + 4 5 pname = "molot-lite"; 5 - version = "unstable-2014-04-23"; 6 + version = "1.0.0"; 6 7 7 - src = fetchurl { 8 - # fetchzip does not accept urls that do not end with .zip. 9 - url = "https://sourceforge.net/p/molot/code/ci/c4eddc426f8d5821e8ebcf1d67265365e4c8c52a/tree/molot_src.zip?format=raw"; 10 - sha256 = "1c47dwfgrmn9459px8s5zikcqyr0777v226qzcxlr6azlcjwr51b"; 8 + src = fetchFromGitHub { 9 + owner = "magnetophon"; 10 + repo = pname; 11 + rev = version; 12 + sha256 = "0xbvicfk1rgp01nlg6hlym9bnygry0nrbv88mv7w6hnacvl63ba4"; 11 13 }; 12 14 13 - nativeBuildInputs = [ unzip ]; 14 15 buildInputs = [ lv2 ]; 15 16 16 - unpackPhase = '' 17 - unzip $src 18 - ''; 19 - 20 - buildPhase = '' 21 - make -C Molot_Mono_Lite 22 - make -C Molot_Stereo_Lite 23 - ''; 17 + makeFlags = [ "INSTALL_DIR=$out/lib/lv2" ]; 24 18 25 19 installPhase = '' 20 + runHook preInstall 26 21 make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite 27 22 make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite 23 + runHook postInstall 28 24 ''; 29 25 30 26 meta = with lib; { 31 27 description = "Stereo and mono audio signal dynamic range compressor in LV2 format"; 32 - homepage = "https://sourceforge.net/projects/molot/"; 28 + homepage = "https://github.com/magnetophon/molot-lite"; 33 29 license = licenses.gpl3Plus; 34 30 maintainers = [ maintainers.magnetophon ]; 35 31 platforms = platforms.linux;