math-preview: fix by overriding nodejs from 22 to 20

math-preview is broken after nodejs defaults to 22 in Nixpkgs. Before the
upstream fixes the problem we need to override the version of nodejs to 20.
This commit is contained in:
Bojun Ren
2025-03-03 18:51:24 +08:00
parent 377d4f3120
commit 74818e25ae
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@
buildNpmPackage rec {
pname = "math-preview";
version = "5.1.1";
inherit nodejs;
src = fetchFromGitLab {
owner = "matsievskiysv";
+4
View File
@@ -16894,6 +16894,10 @@ with pkgs;
cudaSupport = true;
};
math-preview = callPackage ../by-name/ma/math-preview/package.nix {
nodejs = nodejs_20;
};
or-tools = callPackage ../development/libraries/science/math/or-tools {
inherit (darwin) DarwinTools;
stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;