diff options
author | Russell O'Connor <roconnor@theorem.ca> | 2011-04-23 12:36:36 +0000 |
---|---|---|
committer | Russell O'Connor <roconnor@theorem.ca> | 2011-04-23 12:36:36 +0000 |
commit | af59636bf5bf0fc47a121c1029d3dafa7682098e (patch) | |
tree | ff92918891f0db4c6d1cfc75869331f8b77cb8a9 | |
parent | 699261d8df8b5c3972eeffd874c9b5f8ccfc1022 (diff) |
adding ecm support to msieve.
svn path=/nixpkgs/trunk/; revision=26931
-rw-r--r-- | pkgs/applications/science/math/msieve/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/science/math/msieve/default.nix b/pkgs/applications/science/math/msieve/default.nix index 5d26acbe27cbd..baee2f23d4ca6 100644 --- a/pkgs/applications/science/math/msieve/default.nix +++ b/pkgs/applications/science/math/msieve/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, zlib, gmp}: +{stdenv, fetchurl, zlib, gmp, ecm }: stdenv.mkDerivation { name = "msieve-1.48"; @@ -8,7 +8,9 @@ stdenv.mkDerivation { sha256 = "05cm23mpfsbwssqda243sbi8m31j783qx89x9gl7sy8a4dnv7h63"; }; - buildInputs = [ zlib gmp ]; + buildInputs = [ zlib gmp ecm ]; + + ECM = if ecm == null then "0" else "1"; buildFlags = if stdenv.system == "x86_64-linux" then "x86_64" else if stdenv.system == "i686-linux" then "x86" |