aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 35b233b6c1ae0107f8ecd50c65505e98cd8c70e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
with import <nixpkgs> {};

stdenv.mkDerivation rec {
  name = "latex-env";
  env = buildEnv { name = name; paths = buildInputs; };

  buildInputs = let
    texlive-custom = texlive.combine {
      inherit (texlive) scheme-small collection-langgerman latexmk
      amsmath
      eulervm
      cm-super
      enumitem
      bibtex biblatex logreq xstring
      ;
    };
  in [
    gnumake
    texlive-custom
  ];

  shellHook = ''
    export NIX_SHELL_NAME="${name}"
  '';
}