2020-04-24 23:36:52 +00:00
|
|
|
{stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arb";
|
|
|
|
version = "2.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fredrik-johansson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1";
|
|
|
|
};
|
|
|
|
buildInputs = [mpir gmp mpfr flint];
|
|
|
|
configureFlags = [
|
|
|
|
"--with-gmp=${gmp}"
|
|
|
|
"--with-mpir=${mpir}"
|
|
|
|
"--with-mpfr=${mpfr}"
|
|
|
|
"--with-flint=${flint}"
|
|
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = ''A library for arbitrary-precision interval arithmetic'';
|
|
|
|
homepage = "http://arblib.org/";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2020-11-21 19:51:51 +00:00
|
|
|
maintainers = teams.sage.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|