-
-
Save cleverca22/5a5cddbe59092fd9f12b6a2c46d98fef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
latex2pdf = name: input: stdenv.mkDerivation { | |
inherit name; | |
unpackPhase = "true"; | |
buildInputs = [ texLiveFull pandoc ]; | |
installPhase = '' | |
mkdir $out | |
echo ${input} | |
pandoc +RTS -M7G -K2G -RTS --template=${./template.tex} -t latex -o $out/${name} < ${input} | |
''; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment