diff options
author | Timo Kaufmann <timokau@zoho.com> | 2018-04-22 23:37:04 +0200 |
---|---|---|
committer | Timo Kaufmann <timokau@zoho.com> | 2018-04-22 23:42:58 +0200 |
commit | a05581674300579d5da75346e6576d8d65e6bf2c (patch) | |
tree | 916cc2b3f4ec72774fdf994525ad213dc4b9154b /pkgs/development/libraries | |
parent | 3aea9a4c2cd5824dcd02ea96729dc34cb97121ac (diff) | |
download | nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar.gz nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar.bz2 nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar.lz nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar.xz nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.tar.zst nixlib-a05581674300579d5da75346e6576d8d65e6bf2c.zip |
eclib: 20160720 -> 20171002
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/eclib/default.nix | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/pkgs/development/libraries/eclib/default.nix b/pkgs/development/libraries/eclib/default.nix index 3651b9e7660e..dbe487368dc5 100644 --- a/pkgs/development/libraries/eclib/default.nix +++ b/pkgs/development/libraries/eclib/default.nix @@ -1,21 +1,44 @@ -{stdenv, fetchFromGitHub, autoconf, automake, libtool, gettext, autoreconfHook -, pari, ntl, gmp}: +{ stdenv +, fetchFromGitHub +, autoreconfHook +, libtool +, gettext +, 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; + stdenv.mkDerivation rec { name = "${pname}-${version}"; pname = "eclib"; - version = "20160720"; - # or fetchFromGitHub(owner,repo,rev) or fetchgit(rev) + version = "20171002"; src = fetchFromGitHub { owner = "JohnCremona"; repo = "${pname}"; - rev = "${version}"; - sha256 = "0qrcd5c8cqhw9f14my6k6013w8li5vdigrjvchkr19n2l8g75j0h"; + rev = "v${version}"; + sha256 = "092an90405q9da0k0z5jfp5rng9jl0mqbvsbv4fx6jc9ykfcahsj"; }; - buildInputs = [pari ntl gmp]; - nativeBuildInputs = [autoconf automake libtool gettext autoreconfHook]; + buildInputs = [ + pari + ntl + gmp + ] ++ stdenv.lib.optionals withFlint [ + flint + ]; + nativeBuildInputs = [ + autoreconfHook + ]; + doCheck = true; meta = { inherit version; description = ''Elliptic curve tools''; + homepage = https://github.com/JohnCremona/eclib; license = stdenv.lib.licenses.gpl2Plus; maintainers = [stdenv.lib.maintainers.raskin]; platforms = stdenv.lib.platforms.linux; |