about summary refs log tree commit diff
path: root/pkgs/applications/science/math/ecm/default.nix
blob: 53b289983a4ad29d49d1e164791548d6605e25c5 (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
28
{ stdenv, fetchurl, gmp, m4 }:

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

stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
      url = http://gforge.inria.fr/frs/download.php/file/32159/ecm-6.4.4.tar.gz;
      sha256 = "0v5h2nicz9yx78c2d72plbhi30iq4nxbvphja1s9501db4aah4y8";
    };

  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 = stdenv.lib.platforms.all;
  };
}