mt32emu-smf2wav: modernize, move to by-name/

This commit is contained in:
pancaek
2025-10-19 12:18:21 -07:00
parent 6697b05926
commit a816199c3f
2 changed files with 7 additions and 12 deletions
@@ -8,17 +8,14 @@
pkg-config,
}:
let
char2underscore = char: str: lib.replaceStrings [ char ] [ "_" ] str;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "mt32emu-smf2wav";
version = "1.9.0";
src = fetchFromGitHub {
owner = "munt";
repo = "munt";
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
rev = "mt32emu_smf2wav_${lib.replaceString "." "_" finalAttrs.version}";
sha256 = "sha256-XGds9lDfSiY0D8RhYG4TGyjYEVvVYuAfNSv9+VxiJEs=";
};
@@ -41,12 +38,12 @@ stdenv.mkDerivation rec {
"-Dmunt_WITH_MT32EMU_SMF2WAV=ON"
];
meta = with lib; {
meta = {
homepage = "https://munt.sourceforge.net/";
description = "Produces a WAVE file from a Standard MIDI file (SMF)";
mainProgram = "mt32emu-smf2wav";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ OPNA2608 ];
platforms = lib.platforms.all;
};
}
})
-2
View File
@@ -11409,8 +11409,6 @@ with pkgs;
mt32emu-qt = libsForQt5.callPackage ../applications/audio/munt/mt32emu-qt.nix { };
mt32emu-smf2wav = callPackage ../applications/audio/munt/mt32emu-smf2wav.nix { };
noson = libsForQt5.callPackage ../applications/audio/noson { };
pass2csv = python3Packages.callPackage ../tools/security/pass2csv { };