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