summary refs log tree commit diff
path: root/pkgs/applications/audio/molot-lite
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2021-05-22 03:25:12 +0200
committerBart Brouns <bart@magnetophon.nl>2021-05-23 21:19:50 +0200
commit56ca2e6493e96c1e018b587ae21d92a245fbcf01 (patch)
tree79375809cd90d756777a5cb04a050641bd83e203 /pkgs/applications/audio/molot-lite
parent255709420269fcd57392824ee43f2b0638f3de5d (diff)
downloadnixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar.gz
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar.bz2
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar.lz
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar.xz
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.tar.zst
nixpkgs-56ca2e6493e96c1e018b587ae21d92a245fbcf01.zip
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
Diffstat (limited to 'pkgs/applications/audio/molot-lite')
-rw-r--r--pkgs/applications/audio/molot-lite/default.nix30
1 files changed, 13 insertions, 17 deletions
diff --git a/pkgs/applications/audio/molot-lite/default.nix b/pkgs/applications/audio/molot-lite/default.nix
index d30b6bcad2f..c44f597ef30 100644
--- a/pkgs/applications/audio/molot-lite/default.nix
+++ b/pkgs/applications/audio/molot-lite/default.nix
@@ -1,35 +1,31 @@
-{ lib, stdenv, fetchurl, unzip, lv2 }:
+{ lib, stdenv, fetchFromGitHub, lv2 }:
+
+stdenv.mkDerivation rec {
 
-stdenv.mkDerivation {
   pname = "molot-lite";
-  version = "unstable-2014-04-23";
+  version = "1.0.0";
 
-  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";
+  src = fetchFromGitHub {
+    owner = "magnetophon";
+    repo = pname;
+    rev = version;
+    sha256 = "0xbvicfk1rgp01nlg6hlym9bnygry0nrbv88mv7w6hnacvl63ba4";
   };
 
-  nativeBuildInputs = [ unzip ];
   buildInputs = [ lv2 ];
 
-  unpackPhase = ''
-    unzip $src
-  '';
-
-  buildPhase = ''
-    make -C Molot_Mono_Lite
-    make -C Molot_Stereo_Lite
-  '';
+  makeFlags = [ "INSTALL_DIR=$out/lib/lv2" ];
 
   installPhase = ''
+    runHook preInstall
     make install INSTALL_DIR=$out/lib/lv2 -C Molot_Mono_Lite
     make install INSTALL_DIR=$out/lib/lv2 -C Molot_Stereo_Lite
+    runHook postInstall
   '';
 
   meta = with lib; {
     description = "Stereo and mono audio signal dynamic range compressor in LV2 format";
-    homepage = "https://sourceforge.net/projects/molot/";
+    homepage = "https://github.com/magnetophon/molot-lite";
     license = licenses.gpl3Plus;
     maintainers = [ maintainers.magnetophon ];
     platforms = platforms.linux;