SDL2_mixer: enable midi by default, cleanup package
Co-authored-by: Nikolay Amiantov <ab@fmap.me>
This commit is contained in:
parent
78d2aa55ef
commit
ae322db745
@ -1,7 +1,19 @@
|
|||||||
{ stdenv, lib, fetchurl, autoreconfHook, pkgconfig, which
|
{ stdenv
|
||||||
, SDL2, libogg, libvorbis, smpeg2, flac, libmodplug, opusfile, mpg123
|
, fetchurl
|
||||||
, CoreServices, AudioUnit, AudioToolbox
|
, pkg-config
|
||||||
, enableNativeMidi ? false, fluidsynth ? null }:
|
, AudioToolbox
|
||||||
|
, AudioUnit
|
||||||
|
, CoreServices
|
||||||
|
, SDL2
|
||||||
|
, flac
|
||||||
|
, fluidsynth
|
||||||
|
, libmodplug
|
||||||
|
, libogg
|
||||||
|
, libvorbis
|
||||||
|
, mpg123
|
||||||
|
, opusfile
|
||||||
|
, smpeg2
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "SDL2_mixer";
|
pname = "SDL2_mixer";
|
||||||
@ -12,19 +24,37 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0694vsz5bjkcdgfdra6x9fq8vpzrl8m6q96gh58df7065hw5mkxl";
|
sha256 = "0694vsz5bjkcdgfdra6x9fq8vpzrl8m6q96gh58df7065hw5mkxl";
|
||||||
};
|
};
|
||||||
|
|
||||||
preAutoreconf = ''
|
nativeBuildInputs = [ pkg-config ];
|
||||||
aclocal
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkgconfig which ];
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
AudioToolbox
|
||||||
|
AudioUnit
|
||||||
|
CoreServices
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];
|
propagatedBuildInputs = [
|
||||||
|
SDL2
|
||||||
|
flac
|
||||||
|
fluidsynth
|
||||||
|
libmodplug
|
||||||
|
libogg
|
||||||
|
libvorbis
|
||||||
|
mpg123
|
||||||
|
opusfile
|
||||||
|
smpeg2
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ SDL2 libogg libvorbis fluidsynth smpeg2 flac libmodplug opusfile mpg123 ];
|
configureFlags = [
|
||||||
|
"--disable-music-ogg-shared"
|
||||||
configureFlags = [ "--disable-music-ogg-shared" ]
|
"--disable-music-flac-shared"
|
||||||
++ lib.optional enableNativeMidi "--enable-music-native-midi-gpl"
|
"--disable-music-mod-modplug-shared"
|
||||||
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
|
"--disable-music-mp3-mpg123-shared"
|
||||||
|
"--disable-music-opus-shared"
|
||||||
|
"--disable-music-midi-fluidsynth-shared"
|
||||||
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
"--disable-sdltest"
|
||||||
|
"--disable-smpegtest"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "SDL multi-channel audio mixer library";
|
description = "SDL multi-channel audio mixer library";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user