about summary refs log tree commit diff homepage
path: root/.builds/shell.nix
blob: 5b50f0360e8fb4ac302b556e92159ec61240107d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 -Dm 644 $katex/katex.min.js _libs/katex/katex.min.js
    install -Dm 644 $katex/contrib/auto-render.min.js\
      _libs/katex/contrib/auto-render.min.js
  '';
}