1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-25 03:39:40 +01:00

flake: remove helpers module arg

Not to be confused with the Nixvim-configuration `helpers` module arg,
remove the flake-parts `helpers` module arg.
This commit is contained in:
Matt Sturgeon 2025-11-24 07:41:20 +00:00
parent 3426dd04bb
commit 7d17c1b71d
6 changed files with 7 additions and 23 deletions

View file

@ -1,5 +1,4 @@
{ {
helpers,
system, system,
nixvim, nixvim,
nixpkgs, nixpkgs,
@ -84,7 +83,7 @@ let
) opt.declarations; ) opt.declarations;
}; };
configuration = helpers.modules.evalNixvim { configuration = nixvim.lib.evalNixvim {
modules = [ modules = [
{ {
isDocs = true; isDocs = true;

View file

@ -1,14 +1,10 @@
{ { self, ... }:
self,
helpers,
...
}:
{ {
perSystem = perSystem =
{ pkgs, ... }: { pkgs, ... }:
let let
tests = pkgs.callPackage ../../tests { tests = pkgs.callPackage ../../tests {
inherit helpers self; inherit self;
}; };
in in
{ {

View file

@ -6,11 +6,6 @@
... ...
}: }:
{ {
# Expose lib as a flake-parts module arg
_module.args = {
helpers = self.lib.nixvim;
};
# Public `lib` flake output # Public `lib` flake output
flake.lib = { flake.lib = {
nixvim = lib.makeOverridable ({ lib }: (lib.extend self.lib.overlay).nixvim) { nixvim = lib.makeOverridable ({ lib }: (lib.extend self.lib.overlay).nixvim) {

View file

@ -1,9 +1,9 @@
{ helpers, ... }: { self, ... }:
{ {
perSystem = perSystem =
{ system, ... }: { system, ... }:
{ {
nixvimConfigurations.default = helpers.modules.evalNixvim { nixvimConfigurations.default = self.lib.evalNixvim {
inherit system; inherit system;
}; };
}; };

View file

@ -1,9 +1,4 @@
{ { self, inputs, ... }:
self,
inputs,
helpers,
...
}:
{ {
perSystem = perSystem =
{ {
@ -18,7 +13,6 @@
packages = import ../docs { packages = import ../docs {
nixvim = self; nixvim = self;
inherit helpers;
inherit system; inherit system;
inherit (inputs) nixpkgs; inherit (inputs) nixpkgs;
inherit (inputs') nuschtosSearch; inherit (inputs') nuschtosSearch;

View file

@ -1,12 +1,12 @@
{ {
pkgs, pkgs,
helpers,
lib, lib,
linkFarm, linkFarm,
self, # The flake instance self, # The flake instance
}: }:
let let
inherit (pkgs.stdenv.hostPlatform) system; inherit (pkgs.stdenv.hostPlatform) system;
helpers = self.lib.nixvim;
# Use a single common instance of nixpkgs, with allowUnfree # Use a single common instance of nixpkgs, with allowUnfree
# Having a single shared instance should speed up tests a little # Having a single shared instance should speed up tests a little