summary refs log tree commit diff
path: root/pkgs/applications/science/math/ecm/default.nix
blob: 535ec8d18a402a1c2d0f1abc962d0499e66047f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, gmp}:

let
  pname = "ecm";
  version = "6.2.3";
  name = "${pname}-${version}";
in

stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
      url = https://gforge.inria.fr/frs/download.php/22124/ecm-6.2.3.tar.gz;
      sha256 = "1iwwhbz5vwl7j6dyh292hahc8yy16pq9mmm7mxy49zhxd81vy08p";
    };

  buildInputs = [ 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 ];
  };
}