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

  shellHook = ''
    npm install highlight.js # https://github.com/NixOS/nixpkgs/issues/152201
    ln -fns ${nodePackages.katex}/lib/node_modules/katex/dist _libs/katex
    ln -fs _libs/katex/{fonts,katex.min.css} _css
  '';
}