aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
blob: 3a48b5bfbf7b13afdb11882e14d583e4fd73a4a6 (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
{ pkgs ? import <nixpkgs> { }, ... }:

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

  buildInputs = let
    texlive-custom = pkgs.texlive.combine {
      inherit (pkgs.texlive) scheme-small collection-langgerman latexmk
      kpfonts
      titlesec
      listings
      wrapfig
      enumitem
      pgfplots
      bbm
      bbm-macros
      ;
    };
  in [
    pkgs.gnumake
    texlive-custom
  ];

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