mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-08 20:06:25 +02:00
flake-modules -> flake
This commit is contained in:
parent
cf647bc045
commit
998bae9dac
17 changed files with 1 additions and 1 deletions
39
flake/lib.nix
Normal file
39
flake/lib.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
lib,
|
||||
withSystem,
|
||||
...
|
||||
}:
|
||||
{
|
||||
# Expose lib as a flake-parts module arg
|
||||
_module.args = {
|
||||
helpers = self.lib.nixvim;
|
||||
};
|
||||
|
||||
# Public `lib` flake output
|
||||
flake.lib =
|
||||
{
|
||||
nixvim = lib.makeOverridable (import ../lib) {
|
||||
inherit lib;
|
||||
flake = self;
|
||||
};
|
||||
overlay = lib.makeOverridable (import ../lib/overlay.nix) {
|
||||
flake = self;
|
||||
};
|
||||
}
|
||||
// lib.genAttrs config.systems (
|
||||
lib.flip withSystem (
|
||||
{ pkgs, system, ... }:
|
||||
{
|
||||
# NOTE: this is the publicly documented flake output we've had for a while
|
||||
check = pkgs.callPackage ../lib/tests.nix {
|
||||
inherit lib self system;
|
||||
};
|
||||
|
||||
# NOTE: no longer needs to be per-system
|
||||
helpers = lib.warn "nixvim: `<nixvim>.lib.${system}.helpers` has been moved to `<nixvim>.lib.nixvim` and no longer depends on a specific system" self.lib.nixvim;
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue