btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libmpc / package.nix
blob053f0113b444848e23b2892b578490e3d502e904
1 { lib, stdenv, fetchurl
2 , gmp, mpfr
3 }:
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.
10 stdenv.mkDerivation rec {
11   pname = "libmpc";
12   version = "1.3.1"; # to avoid clash with the MPD client
14   src = fetchurl {
15     url = "mirror://gnu/mpc/mpc-${version}.tar.gz";
16     sha256 = "sha256-q2QkkvXPiCt0qgy3MM1BCoHtzb7IlRg86TDnBsHHWbg=";
17   };
19   strictDeps = true;
20   enableParallelBuilding = true;
22   buildInputs = [ gmp mpfr ];
24   doCheck = true; # not cross;
26   meta = {
27     description = "Library for multiprecision complex arithmetic with exact rounding";
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     '';
35     homepage = "https://www.multiprecision.org/mpc/";
36     license = lib.licenses.lgpl2Plus;
38     platforms = lib.platforms.all;
39     maintainers = [ ];
40   };