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

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2018-04-22 22:37:04 +01:00
, fetchFromGitHub
, autoreconfHook
, pari
, ntl
, gmp
# "FLINT is optional and only used for one part of sparse matrix reduction,
# which is used in the modular symbol code but not mwrank or other elliptic
# curve programs." -- https://github.com/JohnCremona/eclib/blob/master/README
, withFlint ? false, flint ? null
}:
assert withFlint -> flint != null;
2016-10-10 18:53:05 +01:00
stdenv.mkDerivation rec {
pname = "eclib";
2021-02-26 00:44:54 +00:00
version = "20210223"; # upgrade might break the sage interface
# sage tests to run:
# src/sage/interfaces/mwrank.py
# src/sage/libs/eclib
# ping @timokau for more info
2016-10-10 18:53:05 +01:00
src = fetchFromGitHub {
owner = "JohnCremona";
2019-09-09 00:38:31 +01:00
repo = pname;
2018-04-22 22:37:04 +01:00
rev = "v${version}";
2021-02-26 00:44:54 +00:00
sha256 = "sha256-xnSw5cdg4PLa0GT/blCYDz/IG5aj+HG2NHSlyCiH9g0=";
2016-10-10 18:53:05 +01:00
};
2018-04-22 22:37:04 +01:00
buildInputs = [
pari
ntl
gmp
] ++ lib.optionals withFlint [
2018-04-22 22:37:04 +01:00
flint
];
nativeBuildInputs = [
autoreconfHook
];
doCheck = true;
meta = with lib; {
2016-10-10 18:53:05 +01:00
inherit version;
description = "Elliptic curve tools";
homepage = "https://github.com/JohnCremona/eclib";
license = licenses.gpl2Plus;
maintainers = teams.sage.members;
platforms = platforms.all;
2016-10-10 18:53:05 +01:00
};
}