1
0
Fork 0
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:
Matt Sturgeon 2025-11-21 12:48:21 +00:00
parent 350ead83e2
commit a250540213

View file

@ -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 {