3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/gmp/default.nix
Eelco Dolstra 8f0f5c403d * gmp 4.3.1. Hopefully this fixes those weird build errors people
have been reporting.

svn path=/nixpkgs/branches/stdenv-updates/; revision=16030
2009-06-22 19:55:47 +00:00

23 lines
563 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];
configureFlags = if cxx then "--enable-cxx" else "--disable-cxx";
doCheck = 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";
};
}