diff --git a/pkgs/applications/science/math/msieve/default.nix b/pkgs/applications/science/math/msieve/default.nix new file mode 100644 index 000000000000..5d26acbe27cb --- /dev/null +++ b/pkgs/applications/science/math/msieve/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl, zlib, gmp}: + +stdenv.mkDerivation { + name = "msieve-1.48"; + + src = fetchurl { + url = mirror://sourceforge/msieve/msieve/Msieve%20v1.48/msieve148.tar.gz; + sha256 = "05cm23mpfsbwssqda243sbi8m31j783qx89x9gl7sy8a4dnv7h63"; + }; + + buildInputs = [ zlib gmp ]; + + buildFlags = if stdenv.system == "x86_64-linux" then "x86_64" + else if stdenv.system == "i686-linux" then "x86" + else "generic"; + + installPhase = ''ensureDir $out/bin/ + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0f69620505df..5d3db4ea036c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7609,6 +7609,8 @@ let withX = true; }; + msieve = callPackage ../applications/science/math/msieve { }; + yacas = callPackage ../applications/science/math/yacas { }; ### SCIENCE / MISC