Skip to content

Conversation

@MattSturgeon
Copy link
Member

  • modules/output: include config and options in build.package
  • lib/modules: init buildNixvim and buildNixvimWith
  • lib/modules: init testNixvim and testNixvimWith

This is an alternative to #3964 with a subtly different interface.

This version introduces a With variant alongside each function. The With variant expects the same args as evalNixvim, similar to evalModules or submoduleWith, while the non-With variant expects a plain module (similar to submodule). The plain module variant also accepts a derivation or configuration.

For now, I've kept it simple rather than trying to DRY-up the similar function implementations.

Similar to the legacy "standalone wrapper" `makeNixvimWithModule`,
thread the configuration's `config` and `options` to the final package.

This allows using such a package as the input to functions like
`testNixvim`.
Introduce thin wrappers around the `<configuration>.config.build.package`,
option intended to replace the legacy `makeNixvim` and
`makeNixvimWithModule` functions.
Introduce thin wrappers around the `<configuration>.config.build.test`
option, intended to replace the legacy `mkTestDerivationFromNvim` and
`mkTestDerivationFromNixvimModule` functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant