nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 54 lines 1.6 kB view raw
1{ lib, stdenv, fetchurl, gmp }: 2 3# Note: this package is used for bootstrapping fetchurl, and thus 4# cannot use fetchpatch! All mutable patches (generated by GitHub or 5# cgit) that are needed here should be included directly in Nixpkgs as 6# files. 7 8stdenv.mkDerivation rec { 9 version = "4.1.0"; 10 pname = "mpfr"; 11 12 src = fetchurl { 13 urls = [ 14 #"https://www.mpfr.org/${name}/${name}.tar.xz" 15 "mirror://gnu/mpfr/${pname}-${version}.tar.xz" 16 ]; 17 sha256 = "0zwaanakrqjf84lfr5hfsdr7hncwv9wj0mchlr7cmxigfgqs760c"; 18 }; 19 20 outputs = [ "out" "dev" "doc" "info" ]; 21 22 # mpfr.h requires gmp.h 23 propagatedBuildInputs = [ gmp ]; 24 25 configureFlags = 26 lib.optional stdenv.hostPlatform.isSunOS "--disable-thread-safe" ++ 27 lib.optional stdenv.hostPlatform.is64bit "--with-pic"; 28 29 doCheck = true; # not cross; 30 31 enableParallelBuilding = true; 32 33 meta = { 34 homepage = "https://www.mpfr.org/"; 35 description = "Library for multiple-precision floating-point arithmetic"; 36 37 longDescription = '' 38 The GNU MPFR library is a C library for multiple-precision 39 floating-point computations with correct rounding. MPFR is 40 based on the GMP multiple-precision library. 41 42 The main goal of MPFR is to provide a library for 43 multiple-precision floating-point computation which is both 44 efficient and has a well-defined semantics. It copies the good 45 ideas from the ANSI/IEEE-754 standard for double-precision 46 floating-point arithmetic (53-bit mantissa). 47 ''; 48 49 license = lib.licenses.lgpl2Plus; 50 51 maintainers = [ ]; 52 platforms = lib.platforms.all; 53 }; 54}