nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 41 lines 1.1 kB view raw
1{ 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 10let 11 version = "1.2.0"; 12in 13stdenv.mkDerivation { 14 pname = "libmpc"; 15 inherit version; # to avoid clash with the MPD client 16 17 src = fetchurl { 18 url = "mirror://gnu/mpc/mpc-${version}.tar.gz"; 19 sha256 = "19pxx3gwhwl588v496g3aylhcw91z1dk1d5x3a8ik71sancjs3z9"; 20 }; 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 = stdenv.lib.licenses.lgpl2Plus; 37 38 platforms = stdenv.lib.platforms.all; 39 maintainers = [ ]; 40 }; 41}