libmt32emu: modernize, move to by-name/

This commit is contained in:
pancaek
2025-10-18 06:49:31 -07:00
parent 8f4420f92e
commit 6697b05926
2 changed files with 8 additions and 10 deletions

View File

@@ -5,15 +5,15 @@
cmake,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libmt32emu";
version = "2.7.2";
src = fetchFromGitHub {
owner = "munt";
repo = "munt";
rev = "${pname}_${lib.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "sha256-wXIvdGoup/AOQggkeXvtbi3pXhyKUKWmyt/ZbGzufds=";
tag = "libmt32emu_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-wXIvdGoup/AOQggkeXvtbi3pXhyKUKWmyt/ZbGzufds=";
};
outputs = [
@@ -36,11 +36,11 @@ stdenv.mkDerivation rec {
--replace "$dev/$dev/" "$dev/"
'';
meta = with lib; {
meta = {
homepage = "https://munt.sourceforge.net/";
description = "Library to emulate Roland MT-32, CM-32L, CM-64 and LAPC-I devices";
license = with licenses; [ lgpl21Plus ];
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.unix; # Not tested on ReactOS yet :)
license = with lib.licenses; [ lgpl21Plus ];
maintainers = with lib.maintainers; [ OPNA2608 ];
platforms = lib.platforms.unix; # Not tested on ReactOS yet :)
};
}
})

View File

@@ -11407,8 +11407,6 @@ with pkgs;
ocamlPackages = ocaml-ng.ocamlPackages_4_14;
};
libmt32emu = callPackage ../applications/audio/munt/libmt32emu.nix { };
mt32emu-qt = libsForQt5.callPackage ../applications/audio/munt/mt32emu-qt.nix { };
mt32emu-smf2wav = callPackage ../applications/audio/munt/mt32emu-smf2wav.nix { };