3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/munt/mt32emu-smf2wav.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1,022 B
Nix
Raw Normal View History

2022-02-01 20:35:19 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, glib
, libmt32emu
, pkg-config
}:
2022-05-12 15:57:32 +01:00
let
char2underscore = char: str: lib.replaceChars [ char ] [ "_" ] str;
in
2022-02-01 20:35:19 +00:00
stdenv.mkDerivation rec {
pname = "mt32emu-smf2wav";
2022-05-12 15:57:32 +01:00
version = "1.8.2";
2022-02-01 20:35:19 +00:00
src = fetchFromGitHub {
owner = "munt";
repo = "munt";
2022-05-12 15:57:32 +01:00
rev = "${char2underscore "-" pname}_${char2underscore "." version}";
sha256 = "1dh5xpnsgx367ch45mm5c2p26vnxf3shax2afg2cd2lrbrlii7l9";
2022-02-01 20:35:19 +00:00
};
postPatch = ''
sed -i -e '/add_subdirectory(mt32emu)/d' CMakeLists.txt
'';
dontFixCmake = true;
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libmt32emu
glib
];
cmakeFlags = [
"-Dmunt_WITH_MT32EMU_QT=OFF"
"-Dmunt_WITH_MT32EMU_SMF2WAV=ON"
];
meta = with lib; {
homepage = "http://munt.sourceforge.net/";
description = "Produces a WAVE file from a Standard MIDI file (SMF)";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
};
}