1 { lib, stdenv, fetchurl
5 # Note: this package is used for bootstrapping fetchurl, and thus
6 # cannot use fetchpatch! All mutable patches (generated by GitHub or
7 # cgit) that are needed here should be included directly in Nixpkgs as
10 stdenv.mkDerivation rec {
12 version = "1.3.1"; # to avoid clash with the MPD client
15 url = "mirror://gnu/mpc/mpc-${version}.tar.gz";
16 sha256 = "sha256-q2QkkvXPiCt0qgy3MM1BCoHtzb7IlRg86TDnBsHHWbg=";
20 enableParallelBuilding = true;
22 buildInputs = [ gmp mpfr ];
24 doCheck = true; # not cross;
27 description = "Library for multiprecision complex arithmetic with exact rounding";
30 GNU MPC is a C library for the arithmetic of complex numbers with
31 arbitrarily high precision and correct rounding of the result. It is
32 built upon and follows the same principles as GNU MPFR.
35 homepage = "https://www.multiprecision.org/mpc/";
36 license = lib.licenses.lgpl2Plus;
38 platforms = lib.platforms.all;