1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/development/libraries/SDL_mixer/default.nix
Sander van der Burg aa16cb5f11 Added option to enable native midi support
svn path=/nixpkgs/trunk/; revision=27563
2011-06-30 15:12:26 +00:00

24 lines
674 B
Nix

{ stdenv, fetchurl, SDL, libogg, libvorbis, enableNativeMidi ? false }:
stdenv.mkDerivation rec {
pname = "SDL_mixer";
version = "1.2.8";
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
sha256 = "a8222a274778ff16d0e3ee49a30db27a48a4d357169a915fc599a764e405e0b6";
};
buildInputs = [SDL libogg libvorbis];
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi "--enable-music-native-midi-gpl";
postInstall = "ln -s $out/include/SDL/SDL_mixer.h $out/include/";
meta = {
description = "SDL multi-channel audio mixer library";
};
}