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,
nixvim,
nixpkgs,
@ -84,7 +83,7 @@ let
) opt.declarations;
};
configuration = helpers.modules.evalNixvim {
configuration = nixvim.lib.evalNixvim {
modules = [
{
isDocs = true;

View file

@ -1,14 +1,10 @@
{
self,
helpers,
...
}:
{ self, ... }:
{
perSystem =
{ pkgs, ... }:
let
tests = pkgs.callPackage ../../tests {
inherit helpers self;
inherit self;
};
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
flake.lib = {
nixvim = lib.makeOverridable ({ lib }: (lib.extend self.lib.overlay).nixvim) {

View file

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

View file

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

View file

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