mt32emu-qt: 1.9.0 -> 1.10.2
This commit is contained in:
parent
bff64d8e02
commit
883cb64ae9
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user