mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
flake: remove getHelpers
function
This commit is contained in:
parent
1b7efacdf4
commit
8b9ba44195
3 changed files with 9 additions and 14 deletions
|
@ -1,4 +1,6 @@
|
||||||
{ getHelpers, pkgs }:
|
{
|
||||||
|
pkgs ? import <nixpkgs> { config.enableUnfree = true; },
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
# Extend nixpkg's lib, so that we can handle recursive leaf types such as `either`
|
# Extend nixpkg's lib, so that we can handle recursive leaf types such as `either`
|
||||||
lib = pkgs.lib.extend (
|
lib = pkgs.lib.extend (
|
||||||
|
@ -32,7 +34,10 @@ let
|
||||||
inherit lib;
|
inherit lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
helpers = getHelpers pkgsDoc false;
|
helpers = import ../lib/helpers.nix {
|
||||||
|
inherit lib;
|
||||||
|
pkgs = pkgsDoc;
|
||||||
|
};
|
||||||
|
|
||||||
nixvimPath = toString ./..;
|
nixvimPath = toString ./..;
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,7 @@
|
||||||
{ getHelpers, ... }:
|
|
||||||
{
|
{
|
||||||
_module.args.getHelpers =
|
|
||||||
pkgs: _nixvimTests:
|
|
||||||
import ../lib/helpers.nix {
|
|
||||||
inherit pkgs _nixvimTests;
|
|
||||||
inherit (pkgs) lib;
|
|
||||||
};
|
|
||||||
|
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
_module.args.helpers = getHelpers pkgs false;
|
_module.args.helpers = import ../lib/helpers.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
{ getHelpers, ... }:
|
|
||||||
{
|
{
|
||||||
perSystem =
|
perSystem =
|
||||||
{ pkgsUnfree, config, ... }:
|
{ pkgsUnfree, config, ... }:
|
||||||
{
|
{
|
||||||
packages = import ../docs {
|
packages = import ../docs {
|
||||||
inherit getHelpers;
|
|
||||||
# Building the docs evaluates each plugin's default package, some of which are unfree
|
# Building the docs evaluates each plugin's default package, some of which are unfree
|
||||||
pkgs = pkgsUnfree;
|
pkgs = pkgsUnfree;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue