2021-02-05 17:12:51 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, cmake, qtbase, alsaLib, makeDesktopItem, libjack2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = "Munt";
|
|
|
|
exec = "mt32emu-qt";
|
|
|
|
desktopName = name;
|
|
|
|
genericName = "Munt synthesiser";
|
|
|
|
categories = "Audio;AudioVideo;";
|
|
|
|
};
|
|
|
|
in mkDerivation rec {
|
2020-10-11 12:50:04 +00:00
|
|
|
version = "2.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "munt";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2021-01-17 00:15:33 +00:00
|
|
|
rev = with lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
|
2020-10-11 12:50:04 +00:00
|
|
|
sha256 = "0bszhkbz24hhx32f973l6h5lkyn4lxhqrckiwmv765d1sba8n5bk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${desktopItem}/share/applications $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontFixCmake = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-10-11 12:50:04 +00:00
|
|
|
buildInputs = [ qtbase alsaLib libjack2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multi-platform software synthesiser emulating Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
|
|
|
|
homepage = "http://munt.sourceforge.net/";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = with licenses; [ lgpl21 gpl3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
};
|
|
|
|
}
|