Unable to find vimPlugins whens using pkgs from niv
RonanMacF opened this issue · comments
Hi,
So I have my home-manager setup fine with pkgs setup to follow the https://nixos.org/channels/nixpkgs-unstable
channel. So using this minimal home.nix
setup
programs.neovim = {
enable = true;
plugins = with pkgs.vimPlugins; [
git-messenger-vim
];
};
and running home-manager switch
everything build fine. But when I try to set pkgs to use the pkgs provided by niv e.g by adding the following at the top
{ Config, pkgs, ... }:
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs {};
in
{
It can no longer find some of the plugins, note not all, but some. An example of one of these is the plugin listed in the minimal config above. I would have thought that niv should at least provide my with all the plugins that normals pkgs provides. My sources.json looks as follows
{
"niv": {
"branch": "master",
"description": "Easy dependency management for Nix projects",
"homepage": "https://github.com/nmattia/niv",
"owner": "nmattia",
"repo": "niv",
"rev": "9d35b9e4837ab88517210b1701127612c260eccf",
"sha256": "0q50xhnm8g2yfyakrh0nly4swyygxpi0a8cb9gp65wcakcgvzvdh",
"type": "tarball",
"url": "https://github.com/nmattia/niv/archive/9d35b9e4837ab88517210b1701127612c260eccf.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
"branch": "release-20.03",
"description": "Nix Packages collection",
"homepage": null,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6b5f85a62c445c14ca344bbe0de66927b13e0c20",
"sha256": "0n6wxd550a5ah4pa33k4jdq7pb77nqxby0svr0i1j99rf8lzawvh",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/6b5f85a62c445c14ca344bbe0de66927b13e0c20.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
Hi @RonanMacF , did you find a solution?
Hi @RonanMacF , did you find a solution?
Yep sorry. Seems that my niv was three versions behind. Running niv init again made it all work.