1 { stdenv, lib, fetchurl
2 , SDL, libogg, libvorbis, smpeg, libmikmod
3 , fluidsynth, pkg-config
4 , enableNativeMidi ? false
7 stdenv.mkDerivation rec {
12 url = "http://www.libsdl.org/projects/${pname}/release/${pname}-${version}.tar.gz";
13 sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ];
19 configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]
20 ++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
21 ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
24 description = "SDL multi-channel audio mixer library";
25 homepage = "http://www.libsdl.org/projects/SDL_mixer/";
26 maintainers = with maintainers; [ lovek323 ];
27 platforms = platforms.unix;
28 license = licenses.zlib;