Skip to content

Instantly share code, notes, and snippets.

@mgdm
Last active October 15, 2019 20:30
Show Gist options
  • Save mgdm/fe418c773c16ee7bdc40b4059278845e to your computer and use it in GitHub Desktop.
Save mgdm/fe418c773c16ee7bdc40b4059278845e to your computer and use it in GitHub Desktop.
# Much output truncated
[ 94%] Built target prep
[ 94%] Built target cleanup
[ 94%] Built target krylov
[ 94%] Built target lingen
[ 94%] Built target mf_scan
[ 94%] Built target bwccheck
[ 94%] Built target matmul_mf
[ 94%] Built target acollect
[ 94%] Built target dispatch
[ 94%] Built target mksol
[ 94%] Built target secure
[ 96%] Built target blocklanczos
[ 98%] Built target plingen_pz
[100%] Built target check_rels
Install the project...
-- Install configuration: "Release"
-- Installing: /nix/store/sjn1vbx3hg34rsry608nas1ksyj999f9-cado-nfs-2.3.0/share/cado-nfs-2.3.0
CMake Error at cmake_install.cmake:41 (file):
file INSTALL cannot make directory
"/nix/store/sjn1vbx3hg34rsry608nas1ksyj999f9-cado-nfs-2.3.0/share/cado-nfs-2.3.0":
No such file or directory
make: *** [Makefile:107: install] Error 1
post-installation fixup
strip is /nix/store/0y7jmqnj48ikjh37n3dl9kqw9hnn68nq-binutils-2.31.1/bin/strip
[nix-shell:~/cado/cado-nfs/build]$
nix-shell --pure -E "with import <nixpkgs> {}; callPackage ./cado-nfs.nix {}"
genericBuild
{ 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";
rev = "${version}";
sha256 = "1grwvlf1n6hj89bs2vvl112362jxm0syxl52msflir8n5m31i7ci";
};
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lpthread"
export CMAKE_INSTALL_PREFIX=$out
'';
nativeBuildInputs = [ cmake coreutils perl python3 vim ];
buildInputs = [ gmp ];
installFlags = [
"CMAKE_INSTALL_PREFIX=$out"
];
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