2015-07-23 17:21:57 +00:00
|
|
|
{ stdenv, fetchurl, gmp, m4 }:
|
2011-04-23 12:25:51 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "ecm";
|
2018-03-07 17:28:26 +00:00
|
|
|
version = "7.0.4";
|
2011-04-23 12:25:51 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-07 17:28:26 +00:00
|
|
|
url = "http://gforge.inria.fr/frs/download.php/file/36224/ecm-${version}.tar.gz";
|
|
|
|
sha256 = "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc";
|
2017-05-26 22:14:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# See https://trac.sagemath.org/ticket/19233
|
|
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-asm-redc";
|
2011-04-23 12:25:51 +00:00
|
|
|
|
2015-07-23 17:21:57 +00:00
|
|
|
buildInputs = [ m4 gmp ];
|
2011-04-23 12:25:51 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Elliptic Curve Method for Integer Factorization";
|
2011-05-04 12:45:05 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-04-23 12:25:51 +00:00
|
|
|
homepage = http://ecm.gforge.inria.fr/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
2017-05-26 22:14:09 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2011-04-23 12:25:51 +00:00
|
|
|
};
|
|
|
|
}
|