at 23.11-beta 41 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl 2, gmp, mpfr 3}: 4 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 8# files. 9 10stdenv.mkDerivation rec { 11 pname = "libmpc"; 12 version = "1.3.1"; # to avoid clash with the MPD client 13 14 src = fetchurl { 15 url = "mirror://gnu/mpc/mpc-${version}.tar.gz"; 16 sha256 = "sha256-q2QkkvXPiCt0qgy3MM1BCoHtzb7IlRg86TDnBsHHWbg="; 17 }; 18 19 strictDeps = true; 20 enableParallelBuilding = true; 21 22 buildInputs = [ gmp mpfr ]; 23 24 doCheck = true; # not cross; 25 26 meta = { 27 description = "Library for multiprecision complex arithmetic with exact rounding"; 28 29 longDescription = 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. 33 ''; 34 35 homepage = "http://mpc.multiprecision.org/"; 36 license = lib.licenses.lgpl2Plus; 37 38 platforms = lib.platforms.all; 39 maintainers = [ ]; 40 }; 41}