about summary refs log tree commit diff
path: root/pkgs/applications/audio/munt
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2022-05-12 16:57:32 +0200
committerOPNA2608 <christoph.neidahl@gmail.com>2022-05-12 18:05:47 +0200
commitf88302aa1c0bc6f41cf2391605112c2c31a84290 (patch)
treedff9c49b7e44121c503c99f075f42ac1c42d3751 /pkgs/applications/audio/munt
parent883cb64ae9d9c266bae6e19d740428505a997a66 (diff)
mt32emu-smf2wav: 1.7.0 -> 1.8.2
Diffstat (limited to 'pkgs/applications/audio/munt')
-rw-r--r--pkgs/applications/audio/munt/mt32emu-smf2wav.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/audio/munt/mt32emu-smf2wav.nix b/pkgs/applications/audio/munt/mt32emu-smf2wav.nix
index 378b5dd8fb832..eee9f01ebb559 100644
--- a/pkgs/applications/audio/munt/mt32emu-smf2wav.nix
+++ b/pkgs/applications/audio/munt/mt32emu-smf2wav.nix
@@ -7,15 +7,18 @@
 , pkg-config
 }:
 
+let
+  char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
+in
 stdenv.mkDerivation rec {
   pname = "mt32emu-smf2wav";
-  version = "1.7.0";
+  version = "1.8.2";
 
   src = fetchFromGitHub {
     owner = "munt";
     repo = "munt";
-    rev = "mt32emu_smf2wav_${lib.replaceChars [ "." ] [ "_" ] version}";
-    hash = "sha256-FnKlKJxe7P4Yqpv0oVGgV4253dMgSmgtb7EAa2FI+aI=";
+    rev = "${char2underscore "-" pname}_${char2underscore "." version}";
+    sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
   };
 
   postPatch = ''
@@ -45,6 +48,5 @@ stdenv.mkDerivation rec {
     license = with licenses; [ gpl3Plus ];
     maintainers = with maintainers; [ OPNA2608 ];
     platforms = platforms.all;
-    mainProgram = "mt32emu-smf2wav";
   };
 }