2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2017-06-04 17:29:02 +00:00
|
|
|
, gmp, mpfr
|
|
|
|
}:
|
|
|
|
|
2020-06-26 20:44:45 +00:00
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
|
|
# files.
|
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "libmpc";
|
2023-01-06 10:39:37 +00:00
|
|
|
version = "1.3.1"; # to avoid clash with the MPD client
|
2010-04-28 12:36:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-02-03 09:14:42 +00:00
|
|
|
url = "mirror://gnu/mpc/mpc-${version}.tar.gz";
|
2023-01-06 10:39:37 +00:00
|
|
|
sha256 = "sha256-q2QkkvXPiCt0qgy3MM1BCoHtzb7IlRg86TDnBsHHWbg=";
|
2010-04-28 12:36:53 +00:00
|
|
|
};
|
|
|
|
|
2022-05-21 16:58:22 +00:00
|
|
|
strictDeps = true;
|
2022-05-14 01:13:49 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-04-28 12:36:53 +00:00
|
|
|
buildInputs = [ gmp mpfr ];
|
|
|
|
|
2018-01-08 07:19:47 +00:00
|
|
|
doCheck = true; # not cross;
|
2010-04-28 12:36:53 +00:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Library for multiprecision complex arithmetic with exact rounding";
|
2010-04-28 12:36:53 +00:00
|
|
|
|
|
|
|
longDescription =
|
2011-03-28 12:04:59 +00:00
|
|
|
'' GNU MPC is a C library for the arithmetic of complex numbers with
|
2010-04-28 12:36:53 +00:00
|
|
|
arbitrarily high precision and correct rounding of the result. It is
|
|
|
|
built upon and follows the same principles as GNU MPFR.
|
|
|
|
'';
|
|
|
|
|
2023-12-02 15:01:52 +00:00
|
|
|
homepage = "https://www.multiprecision.org/mpc/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2010-04-28 12:36:53 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.all;
|
2015-01-13 21:33:24 +00:00
|
|
|
maintainers = [ ];
|
2010-04-28 12:36:53 +00:00
|
|
|
};
|
|
|
|
}
|