2017-03-08 12:45:22 +00:00
|
|
|
{ stdenv, lib, fetchurl, SDL2, libogg, libvorbis, smpeg, flac, enableNativeMidi ? false, fluidsynth ? null }:
|
2013-07-04 18:59:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-22 04:24:32 +01:00
|
|
|
name = "SDL2_mixer-${version}";
|
|
|
|
version = "2.0.1";
|
2013-07-04 18:59:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.libsdl.org/projects/SDL_mixer/release/${name}.tar.gz";
|
2016-05-10 00:24:13 +01:00
|
|
|
sha256 = "0pv9jzjpcjlbiaybvwrb4avmv46qk7iqxlnqrd2dfj82c4mgc92s";
|
2013-07-04 18:59:43 +01:00
|
|
|
};
|
|
|
|
|
2017-03-08 12:45:22 +00:00
|
|
|
propagatedBuildInputs = [ SDL2 libogg libvorbis fluidsynth smpeg flac ];
|
2013-07-04 18:59:43 +01:00
|
|
|
|
2016-08-22 04:24:32 +01:00
|
|
|
configureFlags = [ "--disable-music-ogg-shared" ] ++ lib.optional enableNativeMidi "--enable-music-native-midi-gpl";
|
2013-07-04 18:59:43 +01:00
|
|
|
|
2016-08-22 04:24:32 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-07-04 18:59:43 +01:00
|
|
|
description = "SDL multi-channel audio mixer library";
|
2016-08-22 04:24:32 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://www.libsdl.org/projects/SDL_mixer/";
|
2017-03-08 12:45:22 +00:00
|
|
|
maintainers = with maintainers; [ MP2E ];
|
2016-08-22 04:24:32 +01:00
|
|
|
license = licenses.zlib;
|
2013-07-04 18:59:43 +01:00
|
|
|
};
|
|
|
|
}
|