mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
26 lines
903 B
Nix
26 lines
903 B
Nix
{ stdenv, lib, fetchurl, SDL, libogg, libvorbis, smpeg, enableNativeMidi ? false, fluidsynth ? null }:
|
|
|
|
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";
|
|
};
|
|
|
|
buildInputs = [ SDL libogg libvorbis fluidsynth smpeg ];
|
|
|
|
configureFlags = [ "--disable-music-ogg-shared" ]
|
|
++ lib.optional enableNativeMidi " --enable-music-native-midi-gpl"
|
|
++ lib.optionals stdenv.isDarwin [ "--disable-sdltest" "--disable-smpegtest" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
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;
|
|
};
|
|
}
|