aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 76a3be464b00a7b6a96cc1be34a390ccb8af045c (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
26
27
28
29
30
31
32
33
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
      abstract
      cm-super
      xpatch
      siunitx
      enumitem
      minted fvextra ifplatform framed
      bibtex biblatex logreq xstring
      pgfplots
      adjustbox collectbox
      ;
    };
  in [
    gnumake
    texlive-custom biber
    python3Packages.pygments
    gnuplot
    ghostscript
  ];

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