Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Last active August 3, 2018 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/5d696be18c86783ff693654c35b0364a to your computer and use it in GitHub Desktop.
Save cleverca22/5d696be18c86783ff693654c35b0364a to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
template = pkgs.fetchFromGitHub {
owner = "Wandmalfarbe";
repo = "pandoc-latex-template";
rev = "540173c741da6cc466fb698bc49d78d4f196c1a9";
sha256 = "0qv0b2qj0jqxiag94mg7lmmxg5pznw4iksg6vyc5kxxqhrzpczb5";
};
mermaid = pkgs.fetchFromGitHub {
owner = "raghur";
repo = "mermaid-filter";
rev = "cf423489fc79c7973c821dedb992a1d4ad5cb073";
sha256 = "15fya9a8y6c4iy5kc3rwxza4ck9q1swb0bnr551qggy9fxkiv4zh";
};
in with pkgs; stdenv.mkDerivation {
name = "proposal";
buildInputs =
[ pandoc texlive.combined.scheme-full stdenv template mermaid nodejs-9_x ];
src = ./.;
buildPhase = ''
mkdir $out
${pandoc}/bin/pandoc -f markdown+hard_line_breaks ${./proposal.md} -o $out/proposal.pdf --template ${template}/eisvogel.tex
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment