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