1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/applications/science/math/msieve/default.nix

31 lines
849 B
Nix
Raw Normal View History

{stdenv, fetchurl, zlib, gmp, ecm }:
stdenv.mkDerivation {
2017-05-26 23:14:20 +01:00
name = "msieve-1.53";
src = fetchurl {
2017-05-26 23:14:20 +01:00
url = mirror://sourceforge/msieve/msieve/Msieve%20v1.53/msieve153_src.tar.gz;
sha256 = "1d1vv7j4rh3nnxsmvafi73qy7lw7n3akjlm5pjl3m936yapvmz65";
};
buildInputs = [ zlib gmp ecm ];
ECM = if ecm == null then "0" else "1";
2017-05-26 23:14:20 +01:00
# Doesn't hurt Linux but lets clang-based platforms like Darwin work fine too
makeFlags = "CC=cc all";
2017-05-26 23:14:20 +01:00
installPhase = ''
mkdir -p $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 ];
2017-05-26 23:14:20 +01:00
platforms = [ "x86_64-linux" ] ++ stdenv.lib.platforms.darwin;
};
}