12 char2underscore = char: str: lib.replaceStrings [ char ] [ "_" ] str;
14 stdenv.mkDerivation rec {
15 pname = "mt32emu-smf2wav";
18 src = fetchFromGitHub {
21 rev = "${char2underscore "-" pname}_${char2underscore "." version}";
22 sha256 = "sha256-XGds9lDfSiY0D8RhYG4TGyjYEVvVYuAfNSv9+VxiJEs=";
26 sed -i -e '/add_subdirectory(mt32emu)/d' CMakeLists.txt
42 "-Dmunt_WITH_MT32EMU_QT=OFF"
43 "-Dmunt_WITH_MT32EMU_SMF2WAV=ON"
47 homepage = "https://munt.sourceforge.net/";
48 description = "Produces a WAVE file from a Standard MIDI file (SMF)";
49 mainProgram = "mt32emu-smf2wav";
50 license = with licenses; [ gpl3Plus ];
51 maintainers = with maintainers; [ OPNA2608 ];
52 platforms = platforms.all;