git.iko.soy/typeable/nixpkgs
on master help sign in
sage: don't pin ntl

Now possible because of the lcalc c++11 patch.

commit834a24e0ff8c18b773879b79c1c5e30f518a79b0 authorTimo Kaufmann <timokau@zoho.com> dateSun 29 Jul 2018, 23:02 (8 years ago) parente550e5d
2 files changed+8−18
pkgs/applications/science/math/sage/default.nix+7−18 pkgs/applications/science/math/sage/sage-src.nix+1
pkgs/applications/science/math/sage/default.nix+7−18
@@ -24,7 +24,7 @@ let
2424 pybrial = self.callPackage ./pybrial.nix {};
2525
2626 sagelib = self.callPackage ./sagelib.nix {
27− inherit flint ecl pari eclib ntl arb;
27+ inherit flint ecl pari eclib arb;
2828 inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular;
2929 linbox = nixpkgs.linbox.override { withSage = true; };
3030 };
@@ -45,13 +45,13 @@ let
4545 };
4646
4747 sage-env = self.callPackage ./sage-env.nix {
48− inherit sage-src python rWrapper openblas-cblas-pc ecl singular eclib pari palp flint pynac pythonEnv giac ntl;
48+ inherit sage-src python rWrapper openblas-cblas-pc ecl singular eclib pari palp flint pynac pythonEnv;
4949 pkg-config = nixpkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig
5050 };
5151
5252 sage-with-env = self.callPackage ./sage-with-env.nix {
53− inherit pari eclib pythonEnv ntl;
54− inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular giac;
53+ inherit pari eclib pythonEnv;
54+ inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular;
5555 pkg-config = nixpkgs.pkgconfig; # not to confuse with pythonPackages.pkgconfig
5656 three = nodePackages_8_x.three;
5757 };
@@ -106,31 +106,20 @@ let
106106 });
107107 };
108108
109− # https://trac.sagemath.org/ticket/25532
110− ntl = nixpkgs.ntl.overrideAttrs (oldAttrs: rec {
111− name = "ntl-10.5.0";
112− sourceRoot = "${name}/src";
113− src = fetchurl {
114− url = "http://www.shoup.net/ntl/${name}.tar.gz";
115− sha256 = "1lmldaldgfr2b2a6585m3np5ds8bq1bis2s1ajycjm49vp4kc2xr";
116− };
117− });
118−
119− giac = nixpkgs.giac.override { inherit ntl; };
120109 arb = nixpkgs.arb.override { inherit flint; };
121110
122− singular = nixpkgs.singular.override { inherit ntl flint; };
111+ singular = nixpkgs.singular.override { inherit flint; };
123112
124113 # *not* to confuse with the python package "pynac"
125114 pynac = nixpkgs.pynac.override { inherit singular flint; };
126115
127− eclib = nixpkgs.eclib.override { inherit pari ntl; };
116+ eclib = nixpkgs.eclib.override { inherit pari; };
128117
129118 # With openblas (64 bit), the tests fail the same way as when sage is build with
130119 # openblas instead of openblasCompat. Apparently other packages somehow use flints
131120 # blas when it is available. Alternative would be to override flint to use
132121 # openblasCompat.
133− flint = nixpkgs.flint.override { withBlas = false; inherit ntl; };
122+ flint = nixpkgs.flint.override { withBlas = false; };
134123
135124 # Multiple palp dimensions need to be available and sage expects them all to be
136125 # in the same folder.
pkgs/applications/science/math/sage/sage-src.nix+1
@@ -110,6 +110,7 @@ stdenv.mkDerivation rec {
110110 name = "pari-2.11.0.patch";
111111 url = "https://git.sagemath.org/sage.git/patch/?id=7af4748cab37d651eaa88be501db88f4a5ffc584";
112112 sha256 = "13f740ly3c19gcmhjngiycvmc3mcfj61y00i6jv0wmfgpm2z3ank";
113+ })
113114
114115 # ntl upgrade
115116 (fetchpatch {