2009-02-01 13:46:11 -08:00
|
|
|
{stdenv, fetchurl, m4, cxx ? true}:
|
2006-12-13 14:29:40 -08:00
|
|
|
|
2009-06-22 12:55:47 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2010-01-19 03:23:42 -08:00
|
|
|
name = "gmp-4.3.2";
|
2007-12-14 08:35:31 -08:00
|
|
|
|
2006-12-13 14:29:40 -08:00
|
|
|
src = fetchurl {
|
2009-06-22 12:55:47 -07:00
|
|
|
url = "mirror://gnu/gmp/${name}.tar.bz2";
|
2010-01-19 03:23:42 -08:00
|
|
|
sha256 = "0x8prpqi9amfcmi7r4zrza609ai9529pjaq0h4aw51i867064qck";
|
2006-12-13 14:29:40 -08:00
|
|
|
};
|
2007-12-14 08:35:31 -08:00
|
|
|
|
2009-11-20 18:42:52 -08:00
|
|
|
buildNativeInputs = [m4];
|
2009-06-29 04:01:10 -07:00
|
|
|
|
|
|
|
preConfigure = "ln -sf configfsf.guess config.guess";
|
|
|
|
|
2008-07-15 02:58:11 -07:00
|
|
|
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
2009-06-29 04:01:10 -07:00
|
|
|
|
2006-12-13 14:29:40 -08:00
|
|
|
doCheck = true;
|
2007-12-14 08:35:31 -08: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";
|
2010-02-12 06:14:45 -08:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-12-14 08:35:31 -08:00
|
|
|
};
|
2006-12-13 14:29:40 -08:00
|
|
|
}
|