Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Remove the substitution for the <name?> placeholder used by loaOf,
now that the type has been deprecated.
|
|
As reported in NixOS discourse[1], tracking down invalid values in
`relatedPackages'[2] (i.e. list-items that don't exist in `pkgs`) is
fairly hard as the message "Invalid package attribute path `foobar'"
is quite unhelpful and the trace doesn't point to the source of the
problem either.
This patch improves the error message by mentioning that the issue is an
invalid `relatedPackages`-declaration in $optionName.
[1] https://discourse.nixos.org/t/invalid-package-attribute-path-nextcloud19/8403/9
[2] https://nixos.org/nixpkgs/manual/#sec-functions-library-options
|
|
This reverts commit 3c15d578d4271142d7e596b9dc708cf07da48fa8.
See https://github.com/NixOS/nixpkgs/issues/83863
|
|
|
|
When using `documentation.nixos.includeAllModules = true;` with external
modules, the string context might contain dependencies to derivations
and so `toFile` refuses to evaluate;
```
error: in 'toFile': the file 'options.xml' cannot refer to derivation outputs, at
[...]/nixpkgs/nixos/lib/make-options-doc/default.nix:89:16
```
This is not an issue when using `writeText` (instead of manually
stripping the context).
|
|
|
|
|
|
|
|
|
|
Motivation is to support other repositories containing nixos
modules that would like to generate options documentation:
- nix-darwin
- private repos
- arion
- ??
|