nixpkgs/pkgs/development/libraries/eclib/default.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2018-04-22 23:37:04 +02:00
{ 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;
2016-10-10 19:53:05 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "eclib";
2018-04-22 23:37:04 +02:00
version = "20171002";
2016-10-10 19:53:05 +02:00
src = fetchFromGitHub {
owner = "JohnCremona";
repo = "${pname}";
2018-04-22 23:37:04 +02:00
rev = "v${version}";
sha256 = "092an90405q9da0k0z5jfp5rng9jl0mqbvsbv4fx6jc9ykfcahsj";
2016-10-10 19:53:05 +02:00
};
2018-04-22 23:37:04 +02:00
buildInputs = [
pari
ntl
gmp
] ++ stdenv.lib.optionals withFlint [
flint
];
nativeBuildInputs = [
autoreconfHook
];
doCheck = true;
2016-10-10 19:53:05 +02:00
meta = {
inherit version;
description = ''Elliptic curve tools'';
2018-04-22 23:37:04 +02:00
homepage = https://github.com/JohnCremona/eclib;
2016-10-10 19:53:05 +02:00
license = stdenv.lib.licenses.gpl2Plus;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}