7 # "FLINT is optional and only used for one part of sparse matrix reduction,
8 # which is used in the modular symbol code but not mwrank or other elliptic
9 # curve programs." -- https://github.com/JohnCremona/eclib/blob/master/README
10 , withFlint ? false, flint ? null
13 assert withFlint -> flint != null;
15 stdenv.mkDerivation rec {
17 version = "20221012"; # upgrade might break the sage interface
19 # src/sage/interfaces/mwrank.py
21 # ping @timokau for more info
23 # all releases for this project appear on its GitHub releases page
24 # by definition! other distros sometimes update whenever they see
25 # a version bump in configure.ac or a new tag (and this might show
26 # up on repology). however, a version bump or a new tag may not
27 # represent a new release, and a new release might not be tagged.
29 # see https://github.com/JohnCremona/eclib/issues/64#issuecomment-789788561
30 # for upstream's explanation of the above
31 url = "https://github.com/JohnCremona/eclib/releases/download/${version}/eclib-${version}.tar.bz2";
32 sha256 = "sha256-TPavWyn6BMt7fAo19rrlPICPbK/XKstBruB/ka1adBc=";
38 ] ++ lib.optionals withFlint [
46 description = "Elliptic curve tools";
47 homepage = "https://github.com/JohnCremona/eclib";
48 license = licenses.gpl2Plus;
49 maintainers = teams.sage.members;
50 platforms = platforms.all;