Implement combinator aliases

To make it easier to rename combinators without breaking anyone's
configuration, this change allows combinators to specify a list of
`aliases` that are also exported from `jail.combinators`.

The aliases are also documented on the documentation website.
This commit is contained in:
Alex David 2026-04-02 12:44:34 -07:00
commit 7acd363b6d
2 changed files with 40 additions and 73 deletions

View file

@ -38,6 +38,13 @@
**${name} :: ${combinatorObj.sig}**
${
if combinatorObj ? aliases then
"Aliases: ${lib.concatMapStringsSep ", " (alias: "`${alias}`") combinatorObj.aliases}"
else
""
}
${combinatorObj.doc}
'';