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