Open jlesquembre opened 1 year ago
what if you set --nixpkgs ~/nixpkgs
? The program is supposed to be indenpendant of nixpkgs so once it is in /tmp/my-plugins
it's normal it can't find some files.
NB: it you wanna review https://github.com/NixOS/nixpkgs/pull/260096
@teto yes, that fixes the issue, maybe can we add it to the documentation? I can open a PR if that makes sense, but feel free to add it yourself if you prefer.
I will add it to the example but the error you had was bad UX. Also at this point it shouldn't need any nixpkgs ? I think what happens is that the script tries to read the checksums from existing plugins in nixpkgs to fillup its cache. Maybe it could disable the cache instead
Talking about documentation and UX, docs say that to reference the generated plugins we can do this:
myVimPlugins = pkgs.vimPlugins.extend (
(pkgs.callPackage ./generated.nix {})
);
but it will fail, we have to pass a reference to buildVimPlugin
and buildNeovimPlugin
, it's more like this:
myVimPlugins = pkgs.vimPlugins.extend (
(pkgs.callPackage ./generated.nix {
inherit (pkgs.vimUtils) buildVimPlugin;
inherit (pkgs.neovimUtils) buildNeovimPlugin;
})
);
sry I've been too busy + it's not a feature I use currently. Anyone feel free to pick it up, I can review.
Describe the bug
I get an error when I follow the steps described here: https://github.com/NixOS/nixpkgs/blob/34ea795b4ba7168607098689ac4728bf697d191b/doc/languages-frameworks/vim.section.md?plain=1#L248-L262
Steps To Reproduce
Steps to reproduce the behavior:
Run:
Fails with:
Additional context
Before https://github.com/NixOS/nixpkgs/pull/253714, I was able to run
Notify maintainers
@teto
Metadata