571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
809 B
Nix
33 lines
809 B
Nix
{ lib, 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 = lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc";
|
|
|
|
buildInputs = [ m4 gmp ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Elliptic Curve Method for Integer Factorization";
|
|
mainProgram = "ecm";
|
|
license = lib.licenses.gpl2Plus;
|
|
homepage = "http://ecm.gforge.inria.fr/";
|
|
maintainers = [ lib.maintainers.roconnor ];
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
};
|
|
}
|