munt: Add maintainer, 2.4.1 -> 2.5.0
This commit is contained in:
parent
ac70827524
commit
c403c730d6
@ -1,38 +1,51 @@
|
|||||||
{ lib, mkDerivation, fetchFromGitHub, cmake, qtbase, alsa-lib, makeDesktopItem, libjack2 }:
|
{ lib
|
||||||
|
, mkDerivation
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeDesktopItem
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, qtbase
|
||||||
|
, glib
|
||||||
|
, alsa-lib
|
||||||
|
, withJack ? stdenv.hostPlatform.isUnix, jack
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
desktopItem = makeDesktopItem rec {
|
mainProgram = "mt32emu-qt";
|
||||||
name = "Munt";
|
in
|
||||||
exec = "mt32emu-qt";
|
mkDerivation rec {
|
||||||
desktopName = name;
|
|
||||||
genericName = "Munt synthesiser";
|
|
||||||
categories = "Audio;AudioVideo;";
|
|
||||||
};
|
|
||||||
in mkDerivation rec {
|
|
||||||
version = "2.4.1";
|
|
||||||
pname = "munt";
|
pname = "munt";
|
||||||
|
version = "2.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = with lib.versions; "libmt32emu_${major version}_${minor version}_${patch version}";
|
rev = "munt_${lib.replaceChars [ "." ] [ "_" ] version}";
|
||||||
sha256 = "0bszhkbz24hhx32f973l6h5lkyn4lxhqrckiwmv765d1sba8n5bk";
|
sha256 = "1lknq2a72gv1ddhzr7f967wpa12lh805jj4gjacdnamgrc1h22yn";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
ln -s ${desktopItem}/share/applications $out/share
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontFixCmake = true;
|
dontFixCmake = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
buildInputs = [ qtbase alsa-lib libjack2 ];
|
|
||||||
|
buildInputs = [ qtbase glib ]
|
||||||
|
++ lib.optional stdenv.hostPlatform.isLinux alsa-lib
|
||||||
|
++ lib.optional withJack jack;
|
||||||
|
|
||||||
|
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||||
|
mkdir $out/Applications
|
||||||
|
mv $out/bin/${mainProgram}.app $out/Applications/
|
||||||
|
wrapQtApp $out/Applications/${mainProgram}.app/Contents/MacOS/${mainProgram}
|
||||||
|
ln -s $out/{Applications/${mainProgram}.app/Contents/MacOS,bin}/${mainProgram}
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
inherit mainProgram;
|
||||||
description = "Multi-platform software synthesiser emulating Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
|
description = "Multi-platform software synthesiser emulating Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
|
||||||
homepage = "http://munt.sourceforge.net/";
|
homepage = "http://munt.sourceforge.net/";
|
||||||
license = with licenses; [ lgpl21 gpl3 ];
|
license = with licenses; [ lgpl21 gpl3 ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7025,7 +7025,9 @@ in
|
|||||||
|
|
||||||
munge = callPackage ../tools/security/munge { };
|
munge = callPackage ../tools/security/munge { };
|
||||||
|
|
||||||
munt = libsForQt5.callPackage ../applications/audio/munt { };
|
munt = libsForQt5.callPackage ../applications/audio/munt {
|
||||||
|
jack = libjack2;
|
||||||
|
};
|
||||||
|
|
||||||
mutagen = callPackage ../tools/misc/mutagen { };
|
mutagen = callPackage ../tools/misc/mutagen { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user