From 883cb64ae9d9c266bae6e19d740428505a997a66 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Thu, 12 May 2022 16:53:35 +0200 Subject: mt32emu-qt: 1.9.0 -> 1.10.2 --- pkgs/applications/audio/munt/mt32emu-qt.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'pkgs/applications/audio/munt/mt32emu-qt.nix') diff --git a/pkgs/applications/audio/munt/mt32emu-qt.nix b/pkgs/applications/audio/munt/mt32emu-qt.nix index 0c541885689e4..c2b84fd6ed782 100644 --- a/pkgs/applications/audio/munt/mt32emu-qt.nix +++ b/pkgs/applications/audio/munt/mt32emu-qt.nix @@ -13,15 +13,18 @@ , withJack ? stdenv.hostPlatform.isUnix, libjack2 }: +let + char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str; +in mkDerivation rec { pname = "mt32emu-qt"; - version = "1.9.0"; + version = "1.10.2"; src = fetchFromGitHub { owner = "munt"; repo = "munt"; - rev = "mt32emu_qt_${lib.replaceChars [ "." ] [ "_" ] version}"; - hash = "sha256-9vapBKpl1NC3mIDetuCb452IHV6c7c7NCzSyiBry5oo="; + rev = "${char2underscore "-" pname}_${char2underscore "." version}"; + sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9"; }; postPatch = '' @@ -55,8 +58,8 @@ mkDerivation rec { postInstall = lib.optionalString stdenv.hostPlatform.isDarwin '' mkdir $out/Applications - mv $out/bin/${meta.mainProgram}.app $out/Applications/ - ln -s $out/{Applications/${meta.mainProgram}.app/Contents/MacOS,bin}/${meta.mainProgram} + mv $out/bin/${pname}.app $out/Applications/ + ln -s $out/{Applications/${pname}.app/Contents/MacOS,bin}/${pname} ''; meta = with lib; { @@ -70,6 +73,5 @@ mkDerivation rec { license = with licenses; [ gpl3Plus ]; maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.all; - mainProgram = "mt32emu-qt"; }; } -- cgit 1.4.1