about summary refs log tree commit diff
path: root/pkgs/applications/science/math
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2019-06-20 12:49:20 +0200
committerTimo Kaufmann <timokau@zoho.com>2019-06-20 12:50:00 +0200
commit9955657209a827a98573ed808ba233db4bc1509b (patch)
treec4ee841336d7953e7bd040fafc7c05009ec68629 /pkgs/applications/science/math
parent2d78d928cdd964e7b38e57e2f69f71b62d106cc2 (diff)
downloadnixlib-9955657209a827a98573ed808ba233db4bc1509b.tar
nixlib-9955657209a827a98573ed808ba233db4bc1509b.tar.gz
nixlib-9955657209a827a98573ed808ba233db4bc1509b.tar.bz2
nixlib-9955657209a827a98573ed808ba233db4bc1509b.tar.lz
nixlib-9955657209a827a98573ed808ba233db4bc1509b.tar.xz
nixlib-9955657209a827a98573ed808ba233db4bc1509b.tar.zst
nixlib-9955657209a827a98573ed808ba233db4bc1509b.zip
sage: fix online threejs
Diffstat (limited to 'pkgs/applications/science/math')
-rw-r--r--pkgs/applications/science/math/sage/sage-with-env.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/sage-with-env.nix b/pkgs/applications/science/math/sage/sage-with-env.nix
index 5bb7eda47d5d..e4b1aeae016a 100644
--- a/pkgs/applications/science/math/sage/sage-with-env.nix
+++ b/pkgs/applications/science/math/sage/sage-with-env.nix
@@ -99,6 +99,13 @@ stdenv.mkDerivation rec {
     for pkg in ${lib.concatStringsSep " " input_names}; do
       touch "installed/$pkg"
     done
+
+    # threejs version is in format 0.<version>.minor, but sage currently still
+    # relies on installed_packages for the online version of threejs to work
+    # and expects the format r<version>. This is a hotfix for now.
+    # upstream: https://trac.sagemath.org/ticket/26434
+    rm "installed/threejs"*
+    touch "installed/threejs-r${lib.versions.minor three.version}"
   '';
 
   installPhase = ''