@ -26,7 +26,7 @@ let
pybrial = self . callPackage ./pybrial.nix { } ;
sagelib = self . callPackage ./sagelib.nix {
inherit flint ecl pari glpk eclib ;
inherit flint ecl pari glpk eclib ntl arb ;
inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular ;
linbox = nixpkgs . linbox . override { withSage = true ; } ;
} ;
@ -47,13 +47,13 @@ let
} ;
sage-env = self . callPackage ./sage-env.nix {
inherit sage-src python rWrapper openblas-cblas-pc glpk ecl singular eclib pari palp flint pynac pythonEnv ;
inherit sage-src python rWrapper openblas-cblas-pc glpk ecl singular eclib pari palp flint pynac pythonEnv giac ntl ;
pkg-config = nixpkgs . pkgconfig ; # not to confuse with pythonPackages.pkgconfig
} ;
sage-with-env = self . callPackage ./sage-with-env.nix {
inherit pari eclib pythonEnv ;
inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular ;
inherit pari eclib pythonEnv ntl ;
inherit sage-src openblas-blas-pc openblas-cblas-pc openblas-lapack-pc pynac singular giac ;
pkg-config = nixpkgs . pkgconfig ; # not to confuse with pythonPackages.pkgconfig
three = nodePackages_8_x . three ;
} ;
@ -108,10 +108,23 @@ let
} ) ;
} ;
# https://trac.sagemath.org/ticket/25532
ntl = nixpkgs . ntl . overrideAttrs ( oldAttrs : rec {
name = " n t l - 1 0 . 5 . 0 " ;
sourceRoot = " ${ name } / s r c " ;
src = fetchurl {
url = " h t t p : / / w w w . s h o u p . n e t / n t l / ${ name } . t a r . g z " ;
sha256 = " 1 l m l d a l d g f r 2 b 2 a 6 5 8 5 m 3 n p 5 d s 8 b q 1 b i s 2 s 1 a j y c j m 4 9 v p 4 k c 2 x r " ;
} ;
} ) ;
giac = nixpkgs . giac . override { inherit ntl ; } ;
arb = nixpkgs . arb . override { inherit flint ; } ;
# update causes issues
# https://groups.google.com/forum/#!topic/sage-packaging/cS3v05Q0zso
# https://trac.sagemath.org/ticket/24735
singular = nixpkgs . singular . overrideAttrs ( oldAttrs : {
singular = ( nixpkgs . singular . override { inherit ntl flint ; } ) . overrideAttrs ( oldAttrs : {
name = " s i n g u l a r - 4 . 1 . 0 p 3 " ;
src = fetchurl {
url = " h t t p : / / w w w . m a t h e m a t i k . u n i - k l . d e / f t p / p u b / M a t h / S i n g u l a r / S O U R C E S / 4 - 1 - 0 / s i n g u l a r - 4 . 1 . 0 p 3 . t a r . g z " ;
@ -121,15 +134,15 @@ let
# *not* to confuse with the python package "pynac"
# https://trac.sagemath.org/ticket/24838 (depends on arb update)
pynac = nixpkgs . pynac . override { inherit singular ; } ;
pynac = nixpkgs . pynac . override { inherit singular flint ; } ;
eclib = nixpkgs . eclib . override { inherit pari ; } ;
eclib = nixpkgs . eclib . override { inherit pari ntl ; } ;
# With openblas (64 bit), the tests fail the same way as when sage is build with
# openblas instead of openblasCompat. Apparently other packages somehow use flints
# blas when it is available. Alternative would be to override flint to use
# openblasCompat.
flint = nixpkgs . flint . override { withBlas = false ; } ;
flint = nixpkgs . flint . override { withBlas = false ; inherit ntl ; } ;
# Multiple palp dimensions need to be available and sage expects them all to be
# in the same folder.