diff options
author | Carl Richard Theodor Schneider <dev.github@crtified.me> | 2023-08-01 15:04:21 +0200 |
---|---|---|
committer | Carl Richard Theodor Schneider <dev.github@crtified.me> | 2023-08-01 15:04:21 +0200 |
commit | 27657a22bac96cc314a7120d9f65f20c6a44ff56 (patch) | |
tree | 5941bbe56f90cfe6d8fb5387f8a8bff4fd854b59 /pkgs/applications/science/math/sage | |
parent | e0e6b6909977de63dab514efbf5470bc31e7055e (diff) |
sage: use overrideScope instead of packageOverrides
Diffstat (limited to 'pkgs/applications/science/math/sage')
-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 = { |