-
-
Save mgdm/bc734ae302929f3964c7285f2348cf2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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