nixpkgs/pkgs/development/libraries/gmp/default.nix
Peter Simons db8241e430 gmp: added flag to enable building the cxx library (enabled by default)
svn path=/nixpkgs/trunk/; revision=12357
2008-07-15 09:58:11 +00:00

21 lines
553 B
Nix

{stdenv, fetchurl, m4, cxx ? true}:
stdenv.mkDerivation {
name = "gmp-4.2.2";
src = fetchurl {
url = mirror://gnu/gmp/gmp-4.2.2.tar.bz2;
sha256 = "0yv593sk62ypn21gg2x570g955lmsi4i6f2bc3s43p52myn0lb1b";
};
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";
};
}