2019-06-16 20:59:06 +01:00
|
|
|
{stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
|
2016-10-10 19:01:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arb";
|
2018-12-16 16:17:13 +00:00
|
|
|
version = "2.16.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;
|
2018-12-16 16:17:13 +00:00
|
|
|
sha256 = "0478671wfwy3gl26sbxh1jq1ih36z4k72waa8y2y2lvn649gb7cd";
|
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;
|
2018-08-07 15:38:34 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-10-10 19:01:44 +01:00
|
|
|
inherit version;
|
|
|
|
description = ''A library for arbitrary-precision interval arithmetic'';
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2018-08-07 15:38:34 +01:00
|
|
|
maintainers = with maintainers; [ raskin timokau ];
|
2019-09-15 09:48:07 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-10 19:01:44 +01:00
|
|
|
};
|
|
|
|
}
|