at v192 44 lines 1.2 kB view raw
1{ stdenv, fetchurl, gmp }: 2 3stdenv.mkDerivation rec { 4 name = "mpfr-3.1.3"; 5 6 src = fetchurl { 7 url = "mirror://gnu/mpfr/${name}.tar.bz2"; 8 sha256 = "1z8akfw9wbmq91vrx04bw86mmnxw2sw5qm5cr8ix5b3w2mcv8fzn"; 9 }; 10 11 patches = [ ./upstream.patch ]; 12 13 # mpfr.h requires gmp.h 14 propagatedBuildInputs = [ gmp ]; 15 16 configureFlags = 17 stdenv.lib.optional stdenv.is64bit "--with-pic"; 18 19 doCheck = true; 20 21 enableParallelBuilding = true; 22 23 meta = { 24 homepage = http://www.mpfr.org/; 25 description = "Library for multiple-precision floating-point arithmetic"; 26 27 longDescription = '' 28 The GNU MPFR library is a C library for multiple-precision 29 floating-point computations with correct rounding. MPFR is 30 based on the GMP multiple-precision library. 31 32 The main goal of MPFR is to provide a library for 33 multiple-precision floating-point computation which is both 34 efficient and has a well-defined semantics. It copies the good 35 ideas from the ANSI/IEEE-754 standard for double-precision 36 floating-point arithmetic (53-bit mantissa). 37 ''; 38 39 license = stdenv.lib.licenses.lgpl2Plus; 40 41 maintainers = [ ]; 42 platforms = stdenv.lib.platforms.all; 43 }; 44}