diff options
Declare LaTeX environment using Nix
-rw-r--r-- | shell.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..e18ff03 --- /dev/null +++ b/shell.nix @@ -0,0 +1,28 @@ +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 + kpfonts + titlesec + listings + wrapfig + enumitem + pgfplots + bbm + bbm-macros + ; + }; + in [ + gnumake + texlive-custom + ]; + + shellHook = '' + export NIX_SHELL_NAME="${name}" + ''; +} |