mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #172711 from OPNA2608/update/munt
{libmt32emu,mt32emu-qt,mt32emu-smf2wav}: Bump
This commit is contained in:
commit
0312c74900
@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libmt32emu";
|
pname = "libmt32emu";
|
||||||
version = "2.5.3";
|
version = "2.6.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "munt";
|
owner = "munt";
|
||||||
repo = "munt";
|
repo = "munt";
|
||||||
rev = "${pname}_${lib.replaceChars [ "." ] [ "_" ] version}";
|
rev = "${pname}_${lib.replaceChars [ "." ] [ "_" ] version}";
|
||||||
hash = "sha256-n5VV5Swh1tOVQGT3urEKl64A/w7cY95/0y5wC5ZuLm4=";
|
sha256 = "0ncy55fj9l2s750clxjpv102hrgcndz4qba9w2sf8lwzgy6d1xmp";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
@ -13,15 +13,18 @@
|
|||||||
, withJack ? stdenv.hostPlatform.isUnix, libjack2
|
, withJack ? stdenv.hostPlatform.isUnix, libjack2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
|
||||||
|
in
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "mt32emu-qt";
|
pname = "mt32emu-qt";
|
||||||
version = "1.9.0";
|
version = "1.10.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "munt";
|
owner = "munt";
|
||||||
repo = "munt";
|
repo = "munt";
|
||||||
rev = "mt32emu_qt_${lib.replaceChars [ "." ] [ "_" ] version}";
|
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
|
||||||
hash = "sha256-9vapBKpl1NC3mIDetuCb452IHV6c7c7NCzSyiBry5oo=";
|
sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -55,8 +58,8 @@ mkDerivation rec {
|
|||||||
|
|
||||||
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
mkdir $out/Applications
|
mkdir $out/Applications
|
||||||
mv $out/bin/${meta.mainProgram}.app $out/Applications/
|
mv $out/bin/${pname}.app $out/Applications/
|
||||||
ln -s $out/{Applications/${meta.mainProgram}.app/Contents/MacOS,bin}/${meta.mainProgram}
|
ln -s $out/{Applications/${pname}.app/Contents/MacOS,bin}/${pname}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -70,6 +73,5 @@ mkDerivation rec {
|
|||||||
license = with licenses; [ gpl3Plus ];
|
license = with licenses; [ gpl3Plus ];
|
||||||
maintainers = with maintainers; [ OPNA2608 ];
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
mainProgram = "mt32emu-qt";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mt32emu-smf2wav";
|
pname = "mt32emu-smf2wav";
|
||||||
version = "1.7.0";
|
version = "1.8.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "munt";
|
owner = "munt";
|
||||||
repo = "munt";
|
repo = "munt";
|
||||||
rev = "mt32emu_smf2wav_${lib.replaceChars [ "." ] [ "_" ] version}";
|
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
|
||||||
hash = "sha256-FnKlKJxe7P4Yqpv0oVGgV4253dMgSmgtb7EAa2FI+aI=";
|
sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -45,6 +48,5 @@ stdenv.mkDerivation rec {
|
|||||||
license = with licenses; [ gpl3Plus ];
|
license = with licenses; [ gpl3Plus ];
|
||||||
maintainers = with maintainers; [ OPNA2608 ];
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
mainProgram = "mt32emu-smf2wav";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user