Unverified Commit b502183d authored by Atemu's avatar Atemu Committed by GitHub
Browse files

ecm: 7.0.4 -> 7.0.6 (#368938)

parents 23a7a829 c1c2771a
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@

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

@@ -16,10 +16,16 @@ stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
    url = "http://gforge.inria.fr/frs/download.php/file/36224/ecm-${version}.tar.gz";
    sha256 = "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc";
    url = "https://gitlab.inria.fr/zimmerma/ecm/uploads/ad3e5019fef98819ceae58b78f4cce93/ecm-${version}.tar.gz";
    hash = "sha256-fSDs5hq2ogrYXywYBkyr133Eapb/iUtSINuxbkZm6KU=";
  };

  postPatch = ''
    patchShebangs test.ecmfactor
    patchShebangs test.ecm
    substituteInPlace test.ecm --replace /bin/rm rm
  '';

  # See https://trac.sagemath.org/ticket/19233
  configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc";

@@ -33,8 +39,8 @@ stdenv.mkDerivation {
  meta = {
    description = "Elliptic Curve Method for Integer Factorization";
    mainProgram = "ecm";
    license = lib.licenses.gpl2Plus;
    homepage = "http://ecm.gforge.inria.fr/";
    license = lib.licenses.gpl3Only;
    homepage = "https://gitlab.inria.fr/zimmerma/ecm";
    maintainers = [ lib.maintainers.roconnor ];
    platforms = with lib.platforms; linux ++ darwin;
  };