1 { lib, stdenv, fetchsvn, zlib, gmp, ecm }:
3 stdenv.mkDerivation rec {
8 url = "svn://svn.code.sf.net/p/msieve/code/trunk";
10 hash = "sha256-6ErVn4pYPMG5VFjOQURLsHNpN0pGdp55+rjY8988onU=";
13 buildInputs = [ zlib gmp ecm ];
15 ECM = if ecm == null then "0" else "1";
17 # Doesn't hurt Linux but lets clang-based platforms like Darwin work fine too
18 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "all" ];
26 description = "C library implementing a suite of algorithms to factor large integers";
27 mainProgram = "msieve";
28 license = lib.licenses.publicDomain;
29 homepage = "http://msieve.sourceforge.net/";
30 maintainers = [ lib.maintainers.roconnor ];
31 platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;