Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
sage: fix online threejs
Browse files Browse the repository at this point in the history
  • Loading branch information
timokau committed Jun 20, 2019
1 parent 2d78d92 commit 9955657
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/applications/science/math/sage/sage-with-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 9955657

Please sign in to comment.