1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 07:34:36 +00:00
nixpkgs/pkgs/applications/audio/munt/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, cmake, qtbase, alsaLib, makeDesktopItem, libjack2 }:
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-10-08 06:58:41 +01:00
version = "2.4.1";
2019-05-04 14:06:44 +01:00
pname = "munt";
src = fetchFromGitHub {
owner = pname;
repo = pname;
2021-01-15 13:21:58 +00:00
rev = with lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
2020-10-08 06:58:41 +01:00
sha256 = "0bszhkbz24hhx32f973l6h5lkyn4lxhqrckiwmv765d1sba8n5bk";
2019-05-04 14:06:44 +01:00
};
postInstall = ''
ln -s ${desktopItem}/share/applications $out/share
'';
dontFixCmake = true;
nativeBuildInputs = [ cmake ];
2020-10-08 06:58:41 +01:00
buildInputs = [ qtbase alsaLib libjack2 ];
2019-05-04 14:06:44 +01:00
meta = with lib; {
2019-05-04 14:06:44 +01:00
description = "Multi-platform software synthesiser emulating Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
homepage = "http://munt.sourceforge.net/";
license = with licenses; [ lgpl21 gpl3 ];
2019-05-04 14:06:44 +01:00
platforms = platforms.linux;
maintainers = with maintainers; [ ];
2019-05-04 14:06:44 +01:00
};
}