sage: disable ntl threading on darwin (#541155)

This commit is contained in:
Mauricio Collares
2026-07-19 12:14:07 +00:00
committed by GitHub
+15
View File
@@ -1,5 +1,6 @@
{
pkgs,
stdenv,
withDoc ? false,
requireSageTests ? true,
extraPythonPackages ? ps: [ ],
@@ -12,12 +13,24 @@
let
inherit (pkgs) symlinkJoin callPackage mathjax;
ntl = (
if stdenv.hostPlatform.isDarwin then
(pkgs.ntl.overrideAttrs (old: {
configureFlags = (old.configureFlags or [ ]) ++ [
"NTL_THREADS=off"
];
}))
else
pkgs.ntl
);
python3 = pkgs.python3 // {
pkgs = pkgs.python3.pkgs.overrideScope (
self: super: {
# `sagelib`, i.e. all of sage except some wrappers and runtime dependencies
sagelib = self.callPackage ./sagelib.nix {
inherit flint;
inherit ntl;
inherit sage-src env-locations singular;
inherit (maxima) lisp-compiler;
linbox = pkgs.linbox;
@@ -80,6 +93,7 @@ let
singular
palp
flint
ntl
pythonEnv
maxima
;
@@ -94,6 +108,7 @@ let
# sagelib with added wrappers and a dependency on sage-tests to make sure thet tests were run.
sage-with-env = callPackage ./sage-with-env.nix {
inherit python3 pythonEnv;
inherit ntl;
inherit sage-env;
inherit singular maxima;
inherit three;