mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
28 lines
772 B
Nix
28 lines
772 B
Nix
{stdenv, fetchFromGitHub, mpir, gmp, mpfr, flint}:
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "arb";
|
|
version = "2.13.0";
|
|
src = fetchFromGitHub {
|
|
owner = "fredrik-johansson";
|
|
repo = "${pname}";
|
|
rev = "${version}";
|
|
sha256 = "1fl9gmxf6c1cphk5r8jbys5pywj2rfm705kv0055i0aqc6hrv303";
|
|
};
|
|
buildInputs = [mpir gmp mpfr flint];
|
|
configureFlags = [
|
|
"--with-gmp=${gmp}"
|
|
"--with-mpir=${mpir}"
|
|
"--with-mpfr=${mpfr}"
|
|
"--with-flint=${flint}"
|
|
];
|
|
doCheck = true;
|
|
meta = {
|
|
inherit version;
|
|
description = ''A library for arbitrary-precision interval arithmetic'';
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|