diff --git a/pkgs/applications/audio/munt/mt32emu-smf2wav.nix b/pkgs/applications/audio/munt/mt32emu-smf2wav.nix index 378b5dd8fb83..eee9f01ebb55 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"; }; }