Skip to content

Commit c482a4f

Browse files
notes/obsidian-nvim: fix checkhealth by building from pin manually
As noted in comment, seems likely to be an issue related to setting `src` differently, given the checkhealth was erroring on a null `commit` retrieved by the script during the version check, although I didn't debug extensively after fixing it.
1 parent 28160b5 commit c482a4f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

modules/wrapper/build/config.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@
4646
# Disable failing require check hook checks
4747
doCheck = false;
4848
};
49+
# Checkhealth fails to get the plugin's commit and therefore to
50+
# show the rest of the useful diagnostics if not built here.
51+
# Bothe default `noBuildPlug` and `buildPlug` have the issue, so it's probably setting `src` to the pin itself that fixes it.
52+
obsidian-nvim = pkgs.vimUtils.buildVimPlugin {
53+
name = "obsidian-nvim";
54+
src = getPin "obsidian-nvim";
55+
nvimSkipModules = [
56+
"minimal"
57+
# require picker plugins
58+
"obsidian.picker._telescope"
59+
"obsidian.picker._snacks"
60+
"obsidian.picker._fzf"
61+
"obsidian.picker._mini"
62+
];
63+
};
4964

5065
# Get plugins built from source from self.packages
5166
# If adding a new plugin to be built from source, it must also be inherited

0 commit comments

Comments
 (0)