2009-02-01 21:46:11 +00:00
|
|
|
{stdenv, fetchurl, m4, cxx ? true}:
|
2006-12-13 22:29:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-01-19 10:45:46 +00:00
|
|
|
name = "gmp-4.2.4";
|
2007-12-14 16:35:31 +00:00
|
|
|
|
2006-12-13 22:29:40 +00:00
|
|
|
src = fetchurl {
|
2009-01-19 10:45:46 +00:00
|
|
|
url = mirror://gnu/gmp/gmp-4.2.4.tar.bz2;
|
|
|
|
sha256 = "0s73xzhwrfqcr1gmhsink1fhfzjlkyk70b1bdyrm76m6b3jv082l";
|
2006-12-13 22:29:40 +00:00
|
|
|
};
|
2007-12-14 16:35:31 +00:00
|
|
|
|
2008-09-03 11:30:47 +01:00
|
|
|
buildInputs = [m4];
|
2009-01-19 10:45:46 +00:00
|
|
|
|
2008-07-15 10:58:11 +01:00
|
|
|
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
2009-01-19 10:45:46 +00:00
|
|
|
|
2006-12-13 22:29:40 +00:00
|
|
|
doCheck = true;
|
2007-12-14 16:35:31 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers";
|
|
|
|
homepage = http://gmplib.org/;
|
|
|
|
license = "LGPL";
|
|
|
|
};
|
2006-12-13 22:29:40 +00:00
|
|
|
}
|