From 57fde0a61d60392a813398396c1b94b7570b21ac Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Mon, 18 Jun 2018 21:00:18 +0200 Subject: Declare LaTeX environment using Nix --- shell.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shell.nix 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 {}; + +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}" + ''; +} -- cgit v1.2.3