Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1023 B
Nix
52 lines
1023 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchsvn,
|
|
zlib,
|
|
gmp,
|
|
ecm,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "msieve";
|
|
version = "1056";
|
|
|
|
src = fetchsvn {
|
|
url = "svn://svn.code.sf.net/p/msieve/code/trunk";
|
|
rev = version;
|
|
hash = "sha256-6ErVn4pYPMG5VFjOQURLsHNpN0pGdp55+rjY8988onU=";
|
|
};
|
|
|
|
patches = [ ./savefile_t-pointer-type.patch ];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
gmp
|
|
ecm
|
|
];
|
|
|
|
ECM = if ecm == null then "0" else "1";
|
|
|
|
# Doesn't hurt Linux but lets clang-based platforms like Darwin work fine too
|
|
makeFlags = [
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
"all"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin/
|
|
cp msieve $out/bin/
|
|
'';
|
|
|
|
meta = {
|
|
description = "C library implementing a suite of algorithms to factor large integers";
|
|
mainProgram = "msieve";
|
|
license = lib.licenses.publicDomain;
|
|
homepage = "http://msieve.sourceforge.net/";
|
|
maintainers = [ lib.maintainers.roconnor ];
|
|
platforms = [ "x86_64-linux" ] ++ lib.platforms.darwin;
|
|
};
|
|
}
|