3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix

26 lines
866 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, SDL, libogg, libvorbis, smpeg, enableNativeMidi ? false, fluidsynth ? null }:
stdenv.mkDerivation rec {
pname = "SDL_mixer";
version = "1.2.12";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
};
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg ];
2017-11-11 01:22:15 +00:00
configureFlags = [ "--disable-music-ogg-shared" ]
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
++ lib.optional stdenv.isDarwin "--disable-sdltest";
meta = with stdenv.lib; {
description = "SDL multi-channel audio mixer library";
homepage = http://www.libsdl.org/projects/SDL_mixer/;
maintainers = with maintainers; [ lovek323 ];
2017-03-18 23:22:48 +00:00
platforms = platforms.unix;
};
}