Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchurl 2, SDL, libogg, libvorbis, smpeg, libmikmod 3, fluidsynth, pkg-config 4, enableNativeMidi ? false 5}: 6 7stdenv.mkDerivation rec { 8 pname = "SDL_mixer"; 9 version = "1.2.12"; 10 11 src = fetchurl { 12 url = "http://www.libsdl.org/projects/${pname}/release/${pname}-${version}.tar.gz"; 13 sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n"; 14 }; 15 16 nativeBuildInputs = [ pkg-config ]; 17 buildInputs = [ SDL libogg libvorbis fluidsynth smpeg libmikmod ]; 18 19 configureFlags = [ "--disable-music-ogg-shared" "--disable-music-mod-shared" ] 20 ++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl" 21 ++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ]; 22 23 meta = with lib; { 24 description = "SDL multi-channel audio mixer library"; 25 homepage = "http://www.libsdl.org/projects/SDL_mixer/"; 26 maintainers = with maintainers; [ lovek323 ]; 27 platforms = platforms.unix; 28 license = licenses.zlib; 29 }; 30}