1 { lib, stdenv, fetchurl, gmp, m4 }:
6 name = "${pname}-${version}";
13 url = "http://gforge.inria.fr/frs/download.php/file/36224/ecm-${version}.tar.gz";
14 sha256 = "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc";
17 # See https://trac.sagemath.org/ticket/19233
18 configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc";
20 buildInputs = [ m4 gmp ];
25 description = "Elliptic Curve Method for Integer Factorization";
27 license = lib.licenses.gpl2Plus;
28 homepage = "http://ecm.gforge.inria.fr/";
29 maintainers = [ lib.maintainers.roconnor ];
30 platforms = with lib.platforms; linux ++ darwin;