SDL_mixer: enable mikmod support

master
Ingo Blechschmidt 2021-01-22 04:07:47 +01:00
parent 0b5fd3b784
commit f3c09e4531
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,8 @@
{ stdenv, lib, fetchurl, SDL, libogg, libvorbis, smpeg, enableNativeMidi ? false, fluidsynth ? null }:
{ stdenv, lib, fetchurl
, SDL, libogg, libvorbis, smpeg, libmikmod
, fluidsynth
, enableNativeMidi ? false
}:
stdenv.mkDerivation rec {
pname = "SDL_mixer";
@ -9,9 +13,9 @@ stdenv.mkDerivation rec {
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
};
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg ];
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ];
configureFlags = [ "--disable-music-ogg-shared" ]
configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];