diff --git a/pkgs/development/libraries/gmp/default.nix b/pkgs/development/libraries/gmp/default.nix index b8d915d1faca..48d3446b7810 100644 --- a/pkgs/development/libraries/gmp/default.nix +++ b/pkgs/development/libraries/gmp/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, m4}: +{stdenv, fetchurl, m4, cxx ? true}: stdenv.mkDerivation { name = "gmp-4.2.2"; @@ -9,7 +9,7 @@ stdenv.mkDerivation { }; buildInputs = [m4]; - + configureFlags = if cxx then "--enable-cxx" else "--disable-cxx"; doCheck = true; meta = {