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