From 6e74109b13f57dde059ae59f15a5100ac8cd5b0b Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Tue, 18 Jun 2019 11:50:41 +0200 Subject: 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. --- pkgs/applications/science/math/sage/sagelib.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/science/math/sage/sagelib.nix') 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" -- cgit 1.4.1