1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/applications/audio/munt/default.nix
gnidorah e8a39c8acf
munt: 2.3.0 -> 2.4.0 (#89008)
Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
2020-06-15 13:51:03 -04:00

39 lines
1.1 KiB
Nix

{ stdenv, mkDerivation, fetchFromGitHub, cmake, qtbase, alsaLib, makeDesktopItem }:
let
desktopItem = makeDesktopItem rec {
name = "Munt";
exec = "mt32emu-qt";
desktopName = name;
genericName = "Munt synthesiser";
categories = "Audio;AudioVideo;";
};
in mkDerivation rec {
version = "2.4.0";
pname = "munt";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = with stdenv.lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
sha256 = "0521i7js5imlsxj6n7181w5szfjikam0k4vq1d2ilkqgcwrkg6ln";
};
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/";
license = with licenses; [ lgpl21 gpl3 ];
platforms = platforms.linux;
maintainers = with maintainers; [ gnidorah ];
};
}