about summary refs log tree commit diff homepage
path: root/.builds/shell.nix
blob: b73cc6c2b5adea822c6d9ba1ca389c38998c68c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
with import <nixpkgs> {};
mkShell {
  nativeBuildInputs = [
    julia-bin nodejs nodePackages.katex python3Packages.formbox
  ];

  shellHook = ''
    npm install highlight.js # https://github.com/NixOS/nixpkgs/issues/152201
    katex=${nodePackages.katex}/lib/node_modules/katex/dist
    install -m 755 -d _css/fonts _libs/katex
    install -m 644 $katex/katex.min.css _css
    install -m 644 $katex/fonts/* _css/fonts
    install -m 644 $katex/{katex.min.js,contrib/auto-render.min.js} _libs/katex
  '';
}