mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
c9baba9212
(My OCD kicked in today...) Remove repeated package names, capitalize first word, remove trailing periods and move overlong descriptions to longDescription. I also simplified some descriptions as well, when they were particularly long or technical, often based on Arch Linux' package descriptions. I've tried to stay away from generated expressions (and I think I succeeded). Some specifics worth mentioning: * cron, has "Vixie Cron" in its description. The "Vixie" part is not mentioned anywhere else. I kept it in a parenthesis at the end of the description. * ctags description started with "Exuberant Ctags ...", and the "exuberant" part is not mentioned elsewhere. Kept it in a parenthesis at the end of description. * nix has the description "The Nix Deployment System". Since that doesn't really say much what it is/does (especially after removing the package name!), I changed that to "Powerful package manager that makes package management reliable and reproducible" (borrowed from nixos.org). * Tons of "GNU Foo, Foo is a [the important bits]" descriptions is changed to just [the important bits]. If the package name doesn't contain GNU I don't think it's needed to say it in the description either.
48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{ stdenv, fetchurl, gmp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mpfr-3.1.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/mpfr/${name}.tar.bz2";
|
|
sha256 = "0sqvpfkzamxdr87anzakf9dhkfh15lfmm5bsqajk02h1mxh3zivr";
|
|
};
|
|
|
|
buildInputs = [ gmp ];
|
|
|
|
configureFlags =
|
|
/* Work around a FreeBSD bug that otherwise leads to segfaults in the test suite:
|
|
http://hydra.bordeaux.inria.fr/build/34862
|
|
http://websympa.loria.fr/wwsympa/arc/mpfr/2011-10/msg00015.html
|
|
http://www.freebsd.org/cgi/query-pr.cgi?pr=161344
|
|
*/
|
|
stdenv.lib.optional (stdenv.isSunOS or stdenv.isFreeBSD) "--disable-thread-safe" ++
|
|
stdenv.lib.optional stdenv.is64bit "--with-pic";
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
homepage = http://www.mpfr.org/;
|
|
description = "Library for multiple-precision floating-point arithmetic";
|
|
|
|
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).
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|