Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created April 7, 2017 17:44
Show Gist options
  • Save cleverca22/5a5cddbe59092fd9f12b6a2c46d98fef to your computer and use it in GitHub Desktop.
Save cleverca22/5a5cddbe59092fd9f12b6a2c46d98fef to your computer and use it in GitHub Desktop.
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