From a87208de5896e01e51933f2eede44bfc3b02a3c3 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 27 Mar 2014 15:41:56 +0100 Subject: libopus: Allow to enable custom modes. The reason I'm not making this the default is because it seems to add complexity and degrades performance of the library. For details have a look at this lengthy discussion at: https://bugs.debian.org/686777 Signed-off-by: aszlig --- pkgs/development/libraries/libopus/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/libopus') diff --git a/pkgs/development/libraries/libopus/default.nix b/pkgs/development/libraries/libopus/default.nix index b1bf65d0fe67..78b264506f01 100644 --- a/pkgs/development/libraries/libopus/default.nix +++ b/pkgs/development/libraries/libopus/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fixedPoint ? false }: +{ stdenv, fetchurl, fixedPoint ? false, withCustomModes ? false }: let version = "1.1"; @@ -11,7 +11,8 @@ stdenv.mkDerivation rec { sha256 = "158xprn2086arvdib3vbbygz7z6jqkw2nci7nlywzzwallap0wmr"; }; - configureFlags = stdenv.lib.optionalString fixedPoint "--enable-fixed-point"; + configureFlags = stdenv.lib.optional fixedPoint "--enable-fixed-point" + ++ stdenv.lib.optional withCustomModes "--enable-custom-modes"; doCheck = true; -- cgit 1.4.1