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