mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
70240d36ac
svn path=/nixpkgs/branches/stdenv-updates/; revision=22400
28 lines
692 B
Nix
28 lines
692 B
Nix
{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;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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";
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|