2010-02-08 13:58:25 +00:00
|
|
|
{stdenv, fetchurl, m4, cxx ? true}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gmp-4.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/gmp/${name}.tar.bz2";
|
|
|
|
sha256 = "1j5pklq36ivg2cim5wfysns229a544lqkimp3mlzkwjl513ra0ma";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [m4];
|
|
|
|
|
|
|
|
preConfigure = "ln -sf configfsf.guess config.guess";
|
|
|
|
|
|
|
|
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
Enable parallel building of gcc, glibc, gmp, mpfr, ncurses, coreutils, perl, python, git, and qt4.
If a build expressions has set "enableParallelBuilding = true", then the
generic builder may utilize more than one CPU core to build that particular
expression. This feature works out of the box for GNU Make. Expressions that
use other build drivers like Boost.Jam or SCons have to specify appropriate
flags such as "-j${NIX_BUILD_CORES}" themselves.
svn path=/nixpkgs/trunk/; revision=23042
2010-08-08 19:51:42 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-02-08 13:58:25 +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";
|
2010-02-12 14:14:45 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-02-08 13:58:25 +00:00
|
|
|
};
|
|
|
|
}
|