8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
31 lines
794 B
Nix
31 lines
794 B
Nix
{ stdenv, fetchurl, gmp, m4 }:
|
|
|
|
let
|
|
pname = "ecm";
|
|
version = "7.0.4";
|
|
name = "${pname}-${version}";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
url = "http://gforge.inria.fr/frs/download.php/file/36224/ecm-${version}.tar.gz";
|
|
sha256 = "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc";
|
|
};
|
|
|
|
# See https://trac.sagemath.org/ticket/19233
|
|
configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-asm-redc";
|
|
|
|
buildInputs = [ m4 gmp ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Elliptic Curve Method for Integer Factorization";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
homepage = "http://ecm.gforge.inria.fr/";
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|