about summary refs log tree commit diff homepage
path: root/.builds/shell.nix
blob: 3e4cfe0ab8b29bb313d4279bad7fd633a1ee7279 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
with import <nixpkgs> {};
mkShell {
  nativeBuildInputs = [
    julia 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
  '';
}