summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/sagelib.nix
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2019-06-18 11:50:41 +0200
committerGitHub <noreply@github.com>2019-06-18 11:50:41 +0200
commit6e74109b13f57dde059ae59f15a5100ac8cd5b0b (patch)
tree3fb4bd224ecf2ae7e18c70e01cbf4a99f54e1961 /pkgs/applications/science/math/sage/sagelib.nix
parentabf2c876d65e4594530053d6870803884a47a62c (diff)
downloadnixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar.gz
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar.bz2
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar.lz
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar.xz
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.tar.zst
nixpkgs-6e74109b13f57dde059ae59f15a5100ac8cd5b0b.zip
sage: fix threejs integration (#63375)
Before this it didn't find the correct files. Unfortunately, the
interactive parts of sage are hard to test automatically.
Diffstat (limited to 'pkgs/applications/science/math/sage/sagelib.nix')
-rw-r--r--pkgs/applications/science/math/sage/sagelib.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/sage/sagelib.nix b/pkgs/applications/science/math/sage/sagelib.nix
index d745532d5d7..1040d6d4ba1 100644
--- a/pkgs/applications/science/math/sage/sagelib.nix
+++ b/pkgs/applications/science/math/sage/sagelib.nix
@@ -1,4 +1,5 @@
 { sage-src
+, env-locations
 , perl
 , buildPythonPackage
 , arb
@@ -125,8 +126,11 @@ buildPythonPackage rec {
     export SAGE_ROOT="$PWD"
     export SAGE_LOCAL="$SAGE_ROOT"
     export SAGE_SHARE="$SAGE_LOCAL/share"
-    export JUPYTER_PATH="$SAGE_LOCAL/jupyter"
 
+    # set locations of dependencies (needed for nbextensions like threejs)
+    . ${env-locations}/sage-env-locations
+
+    export JUPYTER_PATH="$SAGE_LOCAL/jupyter"
     export PATH="$SAGE_ROOT/build/bin:$SAGE_ROOT/src/bin:$PATH"
 
     export SAGE_NUM_THREADS="$NIX_BUILD_CORES"