2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv, lib, fetchurl
|
|
|
|
, SDL, libogg, libvorbis, smpeg, libmikmod
|
2021-12-19 01:06:50 +00:00
|
|
|
, fluidsynth, pkg-config
|
2021-02-05 17:12:51 +00:00
|
|
|
, enableNativeMidi ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "SDL_mixer";
|
|
|
|
version = "1.2.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.libsdl.org/projects/${pname}/release/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
|
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
|
|
|
|
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SDL multi-channel audio mixer library";
|
|
|
|
homepage = "http://www.libsdl.org/projects/SDL_mixer/";
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.zlib;
|
|
|
|
};
|
|
|
|
}
|