diff options
author | Mauricio Collares <mauricio@collares.org> | 2023-08-03 17:02:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 17:02:44 +0200 |
commit | c0f4dc2f599f06bc9b53a81ffd31fc0ec509e9bc (patch) | |
tree | 41a50c74c5e0d300c01d2a9d671623d8f93d6540 /pkgs/applications/science | |
parent | 20d9d989fd92c9615c113c7fced10cee2e775982 (diff) | |
parent | 27657a22bac96cc314a7120d9f65f20c6a44ff56 (diff) |
Merge pull request #246573 from CRTified/sage-overrideScope
sage: use overrideScope instead of packageOverrides
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/math/sage/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/applications/science/math/sage/default.nix b/pkgs/applications/science/math/sage/default.nix index d4b678d36f979..a4173d1f5e6d8 100644 --- a/pkgs/applications/science/math/sage/default.nix +++ b/pkgs/applications/science/math/sage/default.nix @@ -11,8 +11,8 @@ let inherit (pkgs) symlinkJoin callPackage nodePackages; - python3 = pkgs.python3.override { - packageOverrides = self: super: { + 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 arb; @@ -29,7 +29,7 @@ let sage-setup = self.callPackage ./python-modules/sage-setup.nix { inherit sage-src; }; - }; + }); }; jupyter-kernel-definition = { |