overlays: change overrides arguments
overlays: move resilient overlay out of ${system}
lib: add mkLib function
A Nix flake for making creating SILE documents easier.
This flake exposes the following functions:
lib.mkDocument
It receives an attribute set with following attributes:
src
— the fileset containing the document sources.
inputters
— additional inputters, without the inputters.
prefix.
Default: []
.
name
— name of the generated derivation.
Default: "document"
.
main
— name of the main SILE file.
Defaults to name
with sil
extension. If inputters
is not empty, then
defaults to name
+ name of the first inputter as extension.
output
— name of the resulting file. Defaults to main
with extension
changed to pdf
.
fonts
— font packages to install. [pkgs.gentium]
by default.
overrides
— a function passed to packageOverrides
. Like an overlay, but
for Lua. The arguments are: pkgs
, final
and prev
. No-op by default.
packages
— makes more Lua packages available to SILE. This argument must be
a function which takes Lua packages as the only argument. Makes possible to
add more Lua packages without rebuilding SILE. Default: no-op.