Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixpkgs> {};
- let
- eisvogel = pkgs.fetchFromGitHub {
- owner = "Wandmalfarbe";
- repo = "pandoc-latex-template";
- rev = "40b00f300237780f2f5486ca88a18d987ad6bcd2";
- sha256 = "0g8ljzz4qacvjp38c3d5hraxgm93bxxsb8qkjj61b18ia4jnysxp";
- };
- # What am I doing wrong here?
- pandoc-include-code = pkgs.haskell.lib.dontCheck pkgs.haskellPackages.pandoc-include-code;
- in
- stdenv.mkDerivation {
- name = "pdf";
- src = ./.;
- buildInputs = [
- pandoc
- pandoc-include-code
- texlive.combined.scheme-full
- ];
- buildPhase = ''
- pandoc main.md \
- --filter pandoc-include-code
- --from markdown \
- --template ${eisvogel}/eisvogel.tex \
- --listings \
- --toc \
- -o result.pdf
- '';
- installPhase = ''
- mkdir $out
- mv result.pdf $out
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement