2023-10-09 19:29:22 +00:00
|
|
|
{lib, stdenv, fetchFromGitLab, autoreconfHook, texinfo, mpfr}:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mpfi";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.5.4";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.inria.fr";
|
|
|
|
owner = "mpfi";
|
|
|
|
repo = "mpfi";
|
|
|
|
|
|
|
|
# Apparently there is an upstream off-by-one-commit error in tagging
|
|
|
|
# Conditional to allow auto-updaters to try new releases
|
|
|
|
# TODO: remove the conditional after an upstream update
|
|
|
|
# rev = version;
|
|
|
|
rev = if version == "1.5.4" then
|
|
|
|
"feab26bc54529417af983950ddbffb3a4c334d4f"
|
|
|
|
else version;
|
|
|
|
|
|
|
|
sha256 = "sha256-aj/QmJ38ifsW36JFQcbp55aIQRvOpiqLHwEh/aFXsgo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
sourceRoot = "${src.name}/mpfi";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook texinfo ];
|
2021-04-26 19:14:03 +00:00
|
|
|
buildInputs = [ mpfr ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A multiple precision interval arithmetic library based on MPFR";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "http://perso.ens-lyon.fr/nathalie.revol/software.html";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|