mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-16 14:01:10 +01:00
modules/output: include config and options in build.package
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`.
This commit is contained in:
parent
350ead83e2
commit
a250540213
1 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
|
options,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -319,6 +320,9 @@ in
|
||||||
printInitPackage
|
printInitPackage
|
||||||
];
|
];
|
||||||
meta.mainProgram = "nvim";
|
meta.mainProgram = "nvim";
|
||||||
|
passthru = {
|
||||||
|
inherit config options;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
printInitPackage = pkgs.writeShellApplication {
|
printInitPackage = pkgs.writeShellApplication {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue