From aa16cb5f11e055febfa98bfb4d4ec581a0bb4d23 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 30 Jun 2011 15:12:26 +0000 Subject: [PATCH] Added option to enable native midi support svn path=/nixpkgs/trunk/; revision=27563 --- pkgs/development/libraries/SDL_mixer/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/SDL_mixer/default.nix b/pkgs/development/libraries/SDL_mixer/default.nix index 1821d746ac4e..af83f19dbbde 100644 --- a/pkgs/development/libraries/SDL_mixer/default.nix +++ b/pkgs/development/libraries/SDL_mixer/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, SDL, libogg, libvorbis }: +{ stdenv, fetchurl, SDL, libogg, libvorbis, enableNativeMidi ? false }: stdenv.mkDerivation rec { pname = "SDL_mixer"; @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { buildInputs = [SDL libogg libvorbis]; - configureFlags = "--disable-music-ogg-shared"; + 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/";