2021-01-19 03:44:47 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mpir
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
, flint
|
|
|
|
}:
|
2021-03-07 14:46:04 +00:00
|
|
|
|
2016-10-10 18:01:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "arb";
|
2022-07-07 16:12:54 +00:00
|
|
|
version = "2.23.0";
|
2021-03-07 14:46:04 +00:00
|
|
|
|
2016-10-10 18:01:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fredrik-johansson";
|
2019-09-08 23:38:31 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-07 16:12:54 +00:00
|
|
|
sha256 = "sha256-dt9PZ3Xfn60rhmnxYo7CEzNTEUN/wMVAXe8U5PzUO9U=";
|
2016-10-10 18:01:44 +00:00
|
|
|
};
|
2021-03-07 14:46:04 +00:00
|
|
|
|
|
|
|
buildInputs = [ mpir gmp mpfr flint ];
|
|
|
|
|
2018-04-22 21:13:05 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gmp=${gmp}"
|
|
|
|
"--with-mpir=${mpir}"
|
|
|
|
"--with-mpfr=${mpfr}"
|
|
|
|
"--with-flint=${flint}"
|
|
|
|
];
|
2021-03-07 14:46:04 +00:00
|
|
|
|
2022-02-10 18:09:02 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-04-22 21:13:05 +00:00
|
|
|
doCheck = true;
|
2021-03-07 14:46:04 +00:00
|
|
|
|
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-03-07 14:46:04 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-11-18 20:29:24 +00:00
|
|
|
maintainers = teams.sage.members;
|
2021-03-07 14:46:04 +00:00
|
|
|
platforms = platforms.unix;
|
2016-10-10 18:01:44 +00:00
|
|
|
};
|
|
|
|
}
|