2019-06-16 21:59:06 +02:00
|
|
|
{stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
|
2016-10-10 20:01:44 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arb";
|
2019-11-14 13:55:43 +01:00
|
|
|
version = "2.17.0";
|
2016-10-10 20:01:44 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fredrik-johansson";
|
2019-09-09 01:38:31 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-14 13:55:43 +01:00
|
|
|
sha256 = "05lpy3hkl5f8ik19aw40cqydrb932xaf2n8hbq9ib5dnk7f010p1";
|
2016-10-10 20:01:44 +02:00
|
|
|
};
|
|
|
|
buildInputs = [mpir gmp mpfr flint];
|
2018-04-22 23:13:05 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gmp=${gmp}"
|
|
|
|
"--with-mpir=${mpir}"
|
|
|
|
"--with-mpfr=${mpfr}"
|
|
|
|
"--with-flint=${flint}"
|
|
|
|
];
|
|
|
|
doCheck = true;
|
2018-08-07 16:38:34 +02:00
|
|
|
meta = with stdenv.lib; {
|
2016-10-10 20:01:44 +02:00
|
|
|
inherit version;
|
|
|
|
description = ''A library for arbitrary-precision interval arithmetic'';
|
2019-11-14 13:55:43 +01:00
|
|
|
homepage = "http://arblib.org/";
|
2016-10-10 20:01:44 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2018-08-07 16:38:34 +02:00
|
|
|
maintainers = with maintainers; [ raskin timokau ];
|
2019-09-15 10:48:07 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-10 20:01:44 +02:00
|
|
|
};
|
|
|
|
}
|