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

View File

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