mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 00:04:33 +02:00
lib/modules: pass inputs.nixpkgs
into evalNixvim
Expose our locked nixpkgs as the `nixpkgs.source` module options. This only happens when `evalNixvim` is part of a lib that was provided `flake` as an argument. Stubbed the `nixpkgs.source` option for now. Eventually, this will be used to construct `pkgs` internally. For now, it's purely informational.
This commit is contained in:
parent
e16d244865
commit
bef9feb446
11 changed files with 62 additions and 11 deletions
|
@ -1,11 +1,15 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
lib,
|
||||
withSystem,
|
||||
...
|
||||
}:
|
||||
{
|
||||
_module.args.helpers = import ../lib { inherit lib; };
|
||||
_module.args.helpers = import ../lib {
|
||||
inherit lib;
|
||||
flake = self;
|
||||
};
|
||||
|
||||
# TODO: output lib without pkgs at the top-level
|
||||
flake.lib = lib.genAttrs config.systems (
|
||||
|
@ -13,9 +17,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# NOTE: this is the publicly documented flake output we've had for a while
|
||||
check = import ../lib/tests.nix { inherit lib pkgs; };
|
||||
check = import ../lib/tests.nix { inherit self lib pkgs; };
|
||||
# TODO: no longer needs to be per-system
|
||||
helpers = import ../lib { inherit lib; };
|
||||
helpers = import ../lib {
|
||||
inherit lib;
|
||||
flake = self;
|
||||
};
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue