Skip to content

Instantly share code, notes, and snippets.

@mgdm
Created September 22, 2019 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgdm/bc734ae302929f3964c7285f2348cf2b to your computer and use it in GitHub Desktop.
Save mgdm/bc734ae302929f3964c7285f2348cf2b to your computer and use it in GitHub Desktop.
{ stdenv, fetchgit, coreutils, perl, python3, cmake, gmp, vim }:
stdenv.mkDerivation rec {
name = "cado-nfs-${version}";
version = "2.3.0";
src = fetchGit {
url = "https://scm.gforge.inria.fr/anonscm/git/cado-nfs/cado-nfs.git";
ref = "2.3.0";
};
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lpthread"
'';
nativeBuildInputs = [ cmake coreutils perl python3 vim ];
buildInputs = [ gmp ];
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
];
meta = with stdenv.lib; {
description = " CADO-NFS is a complete implementation in C/C++ of the Number Field Sieve (NFS) algorithm for factoring integers and computing discrete logarithms in finite fields.";
homepage = "http://cado-nfs.gforge.inria.fr/index.html";
license = licenses.lgpl21Plus;
#maintainers = with maintainers; [ vyp ];
platforms = platforms.all;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment