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}" ''; }