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:
@@ -9,6 +9,7 @@
|
||||
buildNpmPackage rec {
|
||||
pname = "math-preview";
|
||||
version = "5.1.1";
|
||||
inherit nodejs;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "matsievskiysv";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user