2009-02-01 22:46:11 +01:00
|
|
|
{stdenv, fetchurl, m4, cxx ? true}:
|
2006-12-13 23:29:40 +01:00
|
|
|
|
2009-06-22 21:55:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gmp-4.3.1";
|
2007-12-14 17:35:31 +01:00
|
|
|
|
2006-12-13 23:29:40 +01:00
|
|
|
src = fetchurl {
|
2009-06-22 21:55:47 +02:00
|
|
|
url = "mirror://gnu/gmp/${name}.tar.bz2";
|
|
|
|
sha256 = "1j5pklq36ivg2cim5wfysns229a544lqkimp3mlzkwjl513ra0ma";
|
2006-12-13 23:29:40 +01:00
|
|
|
};
|
2007-12-14 17:35:31 +01:00
|
|
|
|
2008-09-03 12:30:47 +02:00
|
|
|
buildInputs = [m4];
|
2009-06-29 13:01:10 +02:00
|
|
|
|
|
|
|
preConfigure = "ln -sf configfsf.guess config.guess";
|
|
|
|
|
2008-07-15 11:58:11 +02:00
|
|
|
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
2009-06-29 13:01:10 +02:00
|
|
|
|
2006-12-13 23:29:40 +01:00
|
|
|
doCheck = true;
|
2007-12-14 17:35:31 +01: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 23:29:40 +01:00
|
|
|
}
|