2019-08-13 17:48:00 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, cmake, qtbase, alsaLib, makeDesktopItem }:
|
2019-05-04 14:06:44 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = "Munt";
|
|
|
|
exec = "mt32emu-qt";
|
|
|
|
desktopName = name;
|
|
|
|
genericName = "Munt synthesiser";
|
|
|
|
categories = "Audio;AudioVideo;";
|
|
|
|
};
|
2019-08-13 17:48:00 +01:00
|
|
|
in mkDerivation rec {
|
2020-06-15 18:51:03 +01:00
|
|
|
version = "2.4.0";
|
2019-05-04 14:06:44 +01:00
|
|
|
pname = "munt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2020-06-15 18:51:03 +01:00
|
|
|
rev = with stdenv.lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
|
|
|
|
sha256 = "0521i7js5imlsxj6n7181w5szfjikam0k4vq1d2ilkqgcwrkg6ln";
|
2019-05-04 14:06:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${desktopItem}/share/applications $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontFixCmake = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ qtbase alsaLib ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multi-platform software synthesiser emulating Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
|
|
|
|
homepage = "http://munt.sourceforge.net/";
|
2020-06-15 18:51:03 +01:00
|
|
|
license = with licenses; [ lgpl21 gpl3 ];
|
2019-05-04 14:06:44 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
};
|
|
|
|
}
|