32 lines
771 B
Nix
Raw Normal View History

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