nixpkgs-suyu/pkgs/development/libraries/SDL_mixer/default.nix

30 lines
944 B
Nix
Raw Normal View History

2021-01-22 04:07:47 +01:00
{ stdenv, lib, fetchurl
, SDL, libogg, libvorbis, smpeg, libmikmod
, fluidsynth
, enableNativeMidi ? false
}:
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-01-22 04:07:47 +01:00
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ];
2021-01-22 04:07:47 +01:00
configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ]
2017-11-11 02:22:15 +01:00
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
meta = with lib; {
description = "SDL multi-channel audio mixer library";
homepage = "http://www.libsdl.org/projects/SDL_mixer/";
maintainers = with maintainers; [ lovek323 ];
2017-03-19 00:22:48 +01:00
platforms = platforms.unix;
2018-08-19 10:13:58 +02:00
license = licenses.zlib;
};
}