2016-08-22 05:24:00 +02:00
|
|
|
{ stdenv, lib, fetchurl, SDL, libogg, libvorbis, smpeg, enableNativeMidi ? false, fluidsynth ? null }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-09-06 03:47:49 +02:00
|
|
|
pname = "SDL_mixer";
|
|
|
|
version = "1.2.12";
|
|
|
|
name = "${pname}-${version}";
|
2006-09-12 02:15:05 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-06 03:47:49 +02:00
|
|
|
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
|
|
|
|
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
|
2006-09-12 02:15:05 +02:00
|
|
|
};
|
2008-02-06 22:17:42 +01:00
|
|
|
|
2016-08-22 05:24:00 +02:00
|
|
|
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg ];
|
2008-02-06 22:17:42 +01:00
|
|
|
|
2017-11-11 02:22:15 +01:00
|
|
|
configureFlags = [ "--disable-music-ogg-shared" ]
|
|
|
|
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
|
2017-11-13 05:23:47 +01:00
|
|
|
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
|
2008-02-06 22:17:42 +01:00
|
|
|
|
2013-09-06 03:47:49 +02:00
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "SDL multi-channel audio mixer library";
|
2013-09-06 03:47:49 +02:00
|
|
|
homepage = http://www.libsdl.org/projects/SDL_mixer/;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2017-03-19 00:22:48 +01:00
|
|
|
platforms = platforms.unix;
|
2008-02-06 22:17:42 +01:00
|
|
|
};
|
2009-03-03 14:27:40 +01:00
|
|
|
}
|