mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
28 lines
806 B
Nix
28 lines
806 B
Nix
{stdenv, fetchFromGitHub, fetchpatch, mpir, gmp, mpfr, flint}:
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
pname = "arb";
|
|
version = "2.15.1";
|
|
src = fetchFromGitHub {
|
|
owner = "fredrik-johansson";
|
|
repo = "${pname}";
|
|
rev = "${version}";
|
|
sha256 = "148mn31xy4wgja2cainn2yaw1bjrppf1dxw2ngnvp7x5j7fms1am";
|
|
};
|
|
buildInputs = [mpir gmp mpfr flint];
|
|
configureFlags = [
|
|
"--with-gmp=${gmp}"
|
|
"--with-mpir=${mpir}"
|
|
"--with-mpfr=${mpfr}"
|
|
"--with-flint=${flint}"
|
|
];
|
|
doCheck = true;
|
|
meta = with stdenv.lib; {
|
|
inherit version;
|
|
description = ''A library for arbitrary-precision interval arithmetic'';
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ raskin timokau ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|