diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2022-05-12 16:53:35 +0200 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2022-05-12 18:05:47 +0200 |
commit | 883cb64ae9d9c266bae6e19d740428505a997a66 (patch) | |
tree | 5f223315c8e6bb1b2f1b9fe801f8d4ed68d63b33 /pkgs/applications/audio/munt/mt32emu-qt.nix | |
parent | bff64d8e02fa1685b6cfbbd9e2b980f36ffd60f6 (diff) |
mt32emu-qt: 1.9.0 -> 1.10.2
Diffstat (limited to 'pkgs/applications/audio/munt/mt32emu-qt.nix')
-rw-r--r-- | pkgs/applications/audio/munt/mt32emu-qt.nix | 14 |
1 files changed, 8 insertions, 6 deletions
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"; }; } |