This flakes provides a few helper functions to build documents using pandoc and LaTeX.
The flake provides two functions under its lib
-attribute
lib.buildPandocEnv {
system, # System in which to build
fonts ? (pkgs: []), # pkgs -> [derivation] that selects fonts from nixpkgs
extraBuildInputs ? (pkgs: [] # pkgs -> [derivation] extra build inputs
extraTexlivePackages ? (pkgs: [])}: # pkgs -> [derivation] select extra texlive packages
- The
system
attribute determines on which system the documents are built. fonts
is a function that selects from font packages from nixpkgs. These are then made available to LuaLaTeX.extraBuildInputs
can be used to select extra dependencies for building documentsextraTexlivePackages
can be used to select extra packages to combine into the texlive set
This function reduces to an attribute set of two functions
shell
is a development shell environmentmkDoc
a function to create a derivationmkDoc = {name, # name of the derivation target, # makefile target files, # resulting files to be copied into store path} # path to source and Makefile
Is a convenience function to generate the output
-attribute for a complete flake.