From 0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Sun, 21 Aug 2011 15:36:33 +0000 Subject: [PATCH] Gdb: Add --without-python to cygwin builds. svn path=/nixpkgs/trunk/; revision=28721 --- pkgs/development/tools/misc/gdb/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index 4c588295ec5..c29fcc994e2 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -39,11 +39,13 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses readline gmp mpfr expat ] ++ stdenv.lib.optional doCheck dejagnu; - configureFlags = + configureFlags = with stdenv.lib; '' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline --with-expat --with-libexpat-prefix=${expat} --with-python - '' + stdenv.lib.optionalString (target != null) - " --target=${target.config}"; + '' + + optionalString (target != null) " --target=${target.config}" + + optionalString (elem stdenv.system platforms.cygwin) " --without-python" + ; crossAttrs = { # Do not add --with-python here to avoid cross building it.