mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24:32 +02:00
top-level/output: add enablePrintInit option
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
This commit is contained in:
parent
239d331bb4
commit
ef0fa015a8
1 changed files with 14 additions and 1 deletions
|
@ -81,6 +81,17 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
enablePrintInit = mkOption {
|
||||
type = types.bool;
|
||||
default = true;
|
||||
example = false;
|
||||
description = ''
|
||||
Install a tool that shows the content of the generated `init.lua` file.
|
||||
|
||||
Run it using `${config.build.printInitPackage.meta.mainProgram}`.
|
||||
'';
|
||||
};
|
||||
|
||||
build = {
|
||||
# TODO: `standalonePackage`; i.e. package + printInitPackage + man-docs bundled together
|
||||
|
||||
|
@ -287,10 +298,12 @@ in
|
|||
with config.build;
|
||||
[
|
||||
nvimPackage
|
||||
printInitPackage
|
||||
]
|
||||
++ lib.optionals config.enableMan [
|
||||
manDocsPackage
|
||||
]
|
||||
++ lib.optionals config.enablePrintInit [
|
||||
printInitPackage
|
||||
];
|
||||
meta.mainProgram = "nvim";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue