From 699261d8df8b5c3972eeffd874c9b5f8ccfc1022 Mon Sep 17 00:00:00 2001 From: Russell O'Connor Date: Sat, 23 Apr 2011 12:25:51 +0000 Subject: [PATCH] Adding ecm-6.2.3. svn path=/nixpkgs/trunk/; revision=26930 --- .../applications/science/math/ecm/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/applications/science/math/ecm/default.nix diff --git a/pkgs/applications/science/math/ecm/default.nix b/pkgs/applications/science/math/ecm/default.nix new file mode 100644 index 000000000000..535ec8d18a40 --- /dev/null +++ b/pkgs/applications/science/math/ecm/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4bc71422e7e6..5e587099b3ff 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7617,6 +7617,8 @@ let ### SCIENCE / MATH + ecm = callPackage ../applications/science/math/ecm { }; + maxima = callPackage ../applications/science/math/maxima { }; wxmaxima = callPackage ../applications/science/math/wxmaxima { };