Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 35 lines 882 B view raw
1{ stdenv, fetchurl 2, gmp, mpfr 3}: 4 5let 6 version = "1.1.0"; 7in 8stdenv.mkDerivation rec { 9 name = "libmpc-${version}"; # to avoid clash with the MPD client 10 11 src = fetchurl { 12 url = "mirror://gnu/mpc/mpc-${version}.tar.gz"; 13 sha256 = "0biwnhjm3rx3hc0rfpvyniky4lpzsvdcwhmcn7f0h4iw2hwcb1b9"; 14 }; 15 16 buildInputs = [ gmp mpfr ]; 17 18 doCheck = true; # not cross; 19 20 meta = { 21 description = "Library for multiprecision complex arithmetic with exact rounding"; 22 23 longDescription = 24 '' GNU MPC is a C library for the arithmetic of complex numbers with 25 arbitrarily high precision and correct rounding of the result. It is 26 built upon and follows the same principles as GNU MPFR. 27 ''; 28 29 homepage = http://mpc.multiprecision.org/; 30 license = stdenv.lib.licenses.lgpl2Plus; 31 32 platforms = stdenv.lib.platforms.all; 33 maintainers = [ ]; 34 }; 35}