mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
Merge pull request #51337 from timokau/sagenb-matplotlib-fix
sage: misc fixes
This commit is contained in:
commit
88b69a0d40
@ -39,7 +39,7 @@ writeTextFile rec {
|
||||
export ECLDIR='${ecl}/lib/ecl-${ecl.version}/'
|
||||
export COMBINATORIAL_DESIGN_DATA_DIR="${combinatorial_designs}/share/combinatorial_designs"
|
||||
export CREMONA_MINI_DATA_DIR="${elliptic_curves}/share/cremona"
|
||||
export JMOL_DIR="${jmol}"
|
||||
export JMOL_DIR="${jmol}/share/jmol" # point to the directory that contains JmolData.jar
|
||||
export JSMOL_DIR="${jmol}/share/jsmol"
|
||||
export MATHJAX_DIR="${mathjax}/lib/node_modules/mathjax"
|
||||
export THREEJS_DIR="${three}/lib/node_modules/three"
|
||||
|
@ -44,6 +44,7 @@
|
||||
, zlib
|
||||
, gsl
|
||||
, ntl
|
||||
, jdk
|
||||
}:
|
||||
|
||||
# This generates a `sage-env` shell file that will be sourced by sage on startup.
|
||||
@ -91,6 +92,7 @@ let
|
||||
lcalc
|
||||
rubiks
|
||||
flintqs
|
||||
jdk # only needed for `jmol` which may be replaced in the future
|
||||
]
|
||||
));
|
||||
in
|
||||
|
@ -55,6 +55,7 @@ buildPythonPackage rec {
|
||||
|
||||
# let sagenb use mathjax
|
||||
postInstall = ''
|
||||
ln -s ${mathjax}/lib/node_modules/mathjax "$out/${python.sitePackages}/mathjax"
|
||||
mkdir -p "$out/${python.sitePackages}/sagenb/data"
|
||||
ln -s ${mathjax}/lib/node_modules/mathjax "$out/${python.sitePackages}/sagenb/data/mathjax"
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user