2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
|
2016-10-10 19:01:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arb";
|
2019-11-14 12:55:43 +00:00
|
|
|
version = "2.17.0";
|
2016-10-10 19:01:44 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fredrik-johansson";
|
2019-09-09 00:38:31 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-14 12:55:43 +00:00
|
|
|
sha256 = "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1";
|
2016-10-10 19:01:44 +01:00
|
|
|
};
|
|
|
|
buildInputs = [mpir gmp mpfr flint];
|
2018-04-22 22:13:05 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gmp=${gmp}"
|
|
|
|
"--with-mpir=${mpir}"
|
|
|
|
"--with-mpfr=${mpfr}"
|
|
|
|
"--with-flint=${flint}"
|
|
|
|
];
|
|
|
|
doCheck = true;
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2021-01-16 04:20:42 +00:00
|
|
|
description = "A library for arbitrary-precision interval arithmetic";
|
2021-01-17 11:39:42 +00:00
|
|
|
homepage = "https://arblib.org/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
2020-11-18 20:29:24 +00:00
|
|
|
maintainers = teams.sage.members;
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2016-10-10 19:01:44 +01:00
|
|
|
};
|
|
|
|
}
|