2017-06-03 23:57:52 +03:00
|
|
|
{ stdenv, fetchurl, gmp
|
2018-02-03 12:16:09 +03:00
|
|
|
, hostPlatform
|
2017-06-03 23:57:52 +03:00
|
|
|
}:
|
2008-06-26 14:20:33 +04:00
|
|
|
|
2013-02-23 17:59:59 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2018-02-03 12:16:09 +03:00
|
|
|
name = "mpfr-3.1.6";
|
2007-10-26 07:01:44 +04:00
|
|
|
|
2008-04-01 20:53:18 +04:00
|
|
|
src = fetchurl {
|
2018-02-03 12:16:09 +03:00
|
|
|
url = "mirror://gnu/mpfr/${name}.tar.xz";
|
|
|
|
sha256 = "0l598h9klpgkz2bp0rxiqb90mkqh9f2f81n5rpy191j00hdaqqks";
|
2008-06-26 14:20:33 +04:00
|
|
|
};
|
2007-10-26 07:01:44 +04:00
|
|
|
|
2017-07-11 12:14:14 +03:00
|
|
|
outputs = [ "out" "dev" "doc" "info" ];
|
2014-08-27 03:14:09 +04:00
|
|
|
|
2015-04-08 12:33:07 +03:00
|
|
|
# mpfr.h requires gmp.h
|
|
|
|
propagatedBuildInputs = [ gmp ];
|
2009-12-18 20:48:31 +03:00
|
|
|
|
2013-06-29 18:56:20 +04:00
|
|
|
configureFlags =
|
2017-06-03 23:57:52 +03:00
|
|
|
stdenv.lib.optional hostPlatform.isSunOS "--disable-thread-safe" ++
|
|
|
|
stdenv.lib.optional hostPlatform.is64bit "--with-pic";
|
2013-06-29 18:56:20 +04:00
|
|
|
|
2018-01-08 10:19:47 +03:00
|
|
|
doCheck = true; # not cross;
|
2007-10-26 07:01:44 +04:00
|
|
|
|
2010-06-23 18:35:18 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2007-10-26 07:01:44 +04:00
|
|
|
meta = {
|
2008-06-26 14:20:33 +04:00
|
|
|
homepage = http://www.mpfr.org/;
|
2014-08-24 18:21:08 +04:00
|
|
|
description = "Library for multiple-precision floating-point arithmetic";
|
2009-02-12 18:26:48 +03:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
The GNU MPFR library is a C library for multiple-precision
|
|
|
|
floating-point computations with correct rounding. MPFR is
|
|
|
|
based on the GMP multiple-precision library.
|
|
|
|
|
|
|
|
The main goal of MPFR is to provide a library for
|
|
|
|
multiple-precision floating-point computation which is both
|
|
|
|
efficient and has a well-defined semantics. It copies the good
|
|
|
|
ideas from the ANSI/IEEE-754 standard for double-precision
|
|
|
|
floating-point arithmetic (53-bit mantissa).
|
|
|
|
'';
|
|
|
|
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2010-08-23 22:28:04 +04:00
|
|
|
|
2015-01-14 00:33:24 +03:00
|
|
|
maintainers = [ ];
|
2010-08-23 22:28:04 +04:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2007-10-26 07:01:44 +04:00
|
|
|
};
|
2013-02-23 17:59:59 +04:00
|
|
|
}
|