Commit 74818e25 authored by Bojun Ren's avatar Bojun Ren
Browse files

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.
parent 377d4f31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
buildNpmPackage rec {
  pname = "math-preview";
  version = "5.1.1";
  inherit nodejs;

  src = fetchFromGitLab {
    owner = "matsievskiysv";
+4 −0
Original line number Diff line number Diff line
@@ -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;