mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 07:27:47 +00:00
npins: update to version 7
This commit is contained in:
parent
47c716df21
commit
9013fd5031
3 changed files with 756 additions and 466 deletions
|
|
@ -11,17 +11,6 @@
|
|||
|
||||
getPin = flip getAttr (pkgs.callPackages ../../../npins/sources.nix {});
|
||||
|
||||
noBuildPlug = pname: let
|
||||
pin = getPin pname;
|
||||
version = builtins.substring 0 8 pin.revision;
|
||||
in
|
||||
pin.outPath.overrideAttrs {
|
||||
inherit pname version;
|
||||
name = "${pname}-${version}";
|
||||
|
||||
passthru.vimPlugin = false;
|
||||
};
|
||||
|
||||
# Build a Vim plugin with the given name and arguments.
|
||||
buildPlug = attrs: let
|
||||
pin = getPin attrs.pname;
|
||||
|
|
@ -49,7 +38,7 @@
|
|||
# Checkhealth fails to get the plugin's commit and therefore to
|
||||
# show the rest of the useful diagnostics if not built like this.
|
||||
obsidian-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
# If set to `"obsidian-nvim"`, this breaks like `buildPlug` and `noBuildPlug`.
|
||||
# If set to `"obsidian-nvim"`, this breaks like `buildPlug` and .
|
||||
name = "obsidian.nvim";
|
||||
src = getPin "obsidian-nvim";
|
||||
nvimSkipModules = [
|
||||
|
|
@ -80,7 +69,7 @@
|
|||
if (lib.isType "flake" plugin)
|
||||
then plugin // {name = plug;}
|
||||
else plugin)
|
||||
else pluginBuilders.${plug} or (noBuildPlug plug)
|
||||
else pluginBuilders.${plug} or (getPin plug)
|
||||
else plug) (
|
||||
filter (f: f != null) plugins
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue