gmp: added flag to enable building the cxx library (enabled by default)

svn path=/nixpkgs/trunk/; revision=12357
This commit is contained in:
Peter Simons 2008-07-15 09:58:11 +00:00
parent f579e01606
commit db8241e430

View File

@ -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 = {