mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
modules: add mkPackageOptionMD
another transitional option factory, like mkAliasOptionModuleMD.
This commit is contained in:
parent
4c1cfbdb84
commit
9da5f12ecf
23 changed files with 42 additions and 24 deletions
|
@ -315,6 +315,7 @@ if hasDocBookErrors:
|
|||
" };\n" +
|
||||
"\n" +
|
||||
" example.enable = mkEnableOption (lib.mdDoc ''your thing'');\n" +
|
||||
" example.package = mkPackageOptionMD pkgs \"your-package\" {};\n" +
|
||||
" imports = [ (mkAliasOptionModuleMD [ \"example\" \"args\" ] [ \"example\" \"settings\" ]) ];",
|
||||
file = sys.stderr)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue