@@ -111,6 +111,13 @@ stdenv.mkDerivation rec {
111111 # Werkzeug has deprecated ImmutableDict, but it is still used in legacy
112112 # sagenb. That's no big issue since sagenb will be removed soon anyways.
113113 ./patches/ignore-werkzeug-immutable-dict-deprecation.patch
114+
115+ # threejs r109 (#28560)
116+ (fetchpatch {
117+ name = "threejs-r109.patch";
118+ url = "https://git.sagemath.org/sage.git/patch?id=fcc11d6effa39f375bc5f4ea5831fb7a2f2767da";
119+ sha256 = "0hnmc8ld3bblks0hcjvjjaydkgwdr1cs3dbl2ys4gfq964pjgqwc";
120+ })
114121 ];
115122
116123 patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;