2011-04-23 14:36:36 +02:00
|
|
|
{stdenv, fetchurl, zlib, gmp, ecm }:
|
2011-04-21 14:48:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "msieve-1.48";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/msieve/msieve/Msieve%20v1.48/msieve148.tar.gz;
|
|
|
|
sha256 = "05cm23mpfsbwssqda243sbi8m31j783qx89x9gl7sy8a4dnv7h63";
|
|
|
|
};
|
|
|
|
|
2011-04-23 14:36:36 +02:00
|
|
|
buildInputs = [ zlib gmp ecm ];
|
|
|
|
|
|
|
|
ECM = if ecm == null then "0" else "1";
|
2011-04-21 14:48:07 +02:00
|
|
|
|
|
|
|
buildFlags = if stdenv.system == "x86_64-linux" then "x86_64"
|
|
|
|
else if stdenv.system == "i686-linux" then "x86"
|
|
|
|
else "generic";
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
installPhase = ''mkdir -p $out/bin/
|
2011-04-21 14:48:07 +02:00
|
|
|
cp msieve $out/bin/'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "a C library implementing a suite of algorithms to factor large integers";
|
|
|
|
license = stdenv.lib.licenses.publicDomain;
|
|
|
|
homepage = http://msieve.sourceforge.net/;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.roconnor ];
|
|
|
|
};
|
|
|
|
}
|