aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-06-18 21:00:18 +0200
committerAdrian Kummerlaender2018-06-18 21:00:18 +0200
commit57fde0a61d60392a813398396c1b94b7570b21ac (patch)
treef270577ef6f20db3a6443c499ecea48b9a2e7982
parentf8d091ee0ba4ee0567ee09b36fdbbaf29328633f (diff)
downloadmath_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar.gz
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar.bz2
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar.lz
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar.xz
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.tar.zst
math_reference_sheets-57fde0a61d60392a813398396c1b94b7570b21ac.zip
Declare LaTeX environment using Nix
-rw-r--r--shell.nix28
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}"
+ '';
+}