-
-
Save cleverca22/5d696be18c86783ff693654c35b0364a 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
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