Do not follow this link

~cdrozak/nix-sile

A Nix flake for making creating SILE documents easier.
ebc37b84 — Cezary Drożak 6 months ago
overlays: change overrides arguments
9ac2cd48 — Cezary Drożak 6 months ago
overlays: move resilient overlay out of ${system}
a97a2695 — Cezary Drożak 6 months ago
lib: add mkLib function

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~cdrozak/nix-sile
read/write
git@git.sr.ht:~cdrozak/nix-sile

You can also use your local clone with git send-email.

#nix-sile

A Nix flake for making creating SILE documents easier.

#Library

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.

Do not follow this link