3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/arb/default.nix

40 lines
739 B
Nix
Raw Normal View History

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 19:01:44 +01:00
stdenv.mkDerivation rec {
pname = "arb";
2021-07-25 14:11:51 +01:00
version = "2.20.0";
2021-03-07 14:46:04 +00:00
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;
2021-07-25 14:11:51 +01:00
sha256 = "sha256-HOIbdkVV7NKowIGhDdn/S8unIRV469OnRHiuiCGaWgk=";
2016-10-10 19:01:44 +01:00
};
2021-03-07 14:46:04 +00: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}"
];
2021-03-07 14:46:04 +00:00
2018-04-22 22:13:05 +01:00
doCheck = true;
2021-03-07 14:46:04 +00:00
meta = with lib; {
description = "A library for arbitrary-precision interval arithmetic";
homepage = "https://arblib.org/";
2021-03-07 14:46:04 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.sage.members;
2021-03-07 14:46:04 +00:00
platforms = platforms.unix;
2016-10-10 19:01:44 +01:00
};
}