Closed St34x closed 1 month ago
Are you using nixvim's unstable (main
) with nixpkgs 24.05?
I think your error comes from nvim being 0.9 while nixvim is writing a config targeting 0.10.
You may be able to resolve by either using nixvim's nixos-24.05
branch or by setting programs.nixvim.nixpkgs.pkgs
to a suitable unstable nixpkgs instance.
Are you using nixvim's unstable (
main
) with nixpkgs 24.05?
I use only nixpkgs 24.05
I think your error comes from nvim being 0.9 while nixvim is writing a config targeting 0.10.
yes, I have nvim 0.9
You may be able to resolve by either using nixvim's
nixos-24.05
branch or by settingprograms.nixvim.nixpkgs.pkgs
to a suitable unstable nixpkgs instance.
I don't understand how it can use nvim 0.10 as in my config I have only 24.05 version. here is link to my config NixOS conf, maybe I missed something
You need to use the 24.05 branch of nixvim
You may be able to resolve by either using nixvim's
nixos-24.05
branch or by settingprograms.nixvim.nixpkgs.pkgs
to a suitable unstable nixpkgs instance.
As above :point_up_2:
You can either:
nixos-24.05
branch (easiest option)nixos-unstable
and use it as programs.nixvim.nixpkgs.pkgs
As above 👆
You can either:
* Use nixim's `nixos-24.05` branch (easiest option)
with this modification
nixvim = {
url = "github:nix-community/nixvim";
# If using a stable channel you can use `url = "github:nix-community/nixvim/nixos-<version>"`
inputs.nixpkgs.follows = "nixpkgs";
};
now I get this error
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at /nix/store/mvz96grv31nxq69ldw5a5pn2qh1s6ca6-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at /nix/store/mvz96grv31nxq69ldw5a5pn2qh1s6ca6-source/pkgs/build-support/trivial-builders/default.nix:68:16:
67| enableParallelBuilding = true;
68| inherit buildCommand name;
| ^
69| passAsFile = [ "buildCommand" ]
(stack trace truncated; use '--show-trace' to show the full trace)
error: eslint cannot be found in pkgs
That'll be because your config was written for nixvim's unstable branch.
error: eslint cannot be found in pkgs
This means pkgs.eslint
doesn't exist in 24.05.
If you want to use nixvim's stable branch, you can reference our stable docs at https://nix-community.github.io/nixvim/stable/
If you'd rather mix-and-match; using 24.05 for your main config, but nixos-unstable for your nixvim build, you can see my alternative solution in my earlier comments 🙂
error: eslint cannot be found in pkgs That'll be because your config was written for nixvim's unstable branch.
I have encountered this problem too because needed new fancy extraFiles
.
Just curious, how it's come to a strong dependency on the ecmascript's linter? I doubt any evaluations there actually needed to happen at least without enabling any LSP-related plugins as it is in my case.
… while calling anonymous lambda
at /nix/store/7habycwl6g3cpnjb3m16azypx4wxyli0-source/plugins/lsp/language-servers/efmls-configs.nix:46:12:
45| (lib.attrsets.mapAttrs (
46| _: opt:
| ^
47| if lib.meta.availableOn pkgs.stdenv.hostPlatform opt.default then
… from call site
at /nix/store/7habycwl6g3cpnjb3m16azypx4wxyli0-source/plugins/lsp/language-servers/efmls-configs.nix:47:12:
46| _: opt:
47| if lib.meta.availableOn pkgs.stdenv.hostPlatform opt.default then
| ^
48| opt
… while calling 'availableOn'
.....
error: eslint cannot be found in pkgs
You may be able to resolve by either using nixvim's
nixos-24.05
branch or by settingprograms.nixvim.nixpkgs.pkgs
to a suitable unstable nixpkgs instance.As above 👆
You can either:
- Use nixim's
nixos-24.05
branch (easiest option)- Create a pkgs instance from
nixos-unstable
and use it asprograms.nixvim.nixpkgs.pkgs
- Use nixvim's "standalone build" installation method
Thanks, i had the same issue and this fixed it
Just curious, how it's come to a strong dependency on the ecmascript's linter? I doubt any evaluations there actually needed to happen at least without enabling any LSP-related plugins as it is in my case.
We have an issue regarding this https://github.com/nix-community/nixvim/issues/2004. Essentially, all package-options in nixvim end up having their default value evaluated for one reason or another. If pkgs.<some-packgae>
doesn't exist in the current pkgs
instance we run into errors like this.
Ideally, all nixvim's options would only evaluate their value/default-value when it's actually needed for something. But currently that isn't the case and we aren't 100% sure why.
We haven't had confirmation from the OP, but I'm going to assume this is resolved and close the issue.
If OP or anyone else still has anything to add, or thinks we should re-open, you will still be able to comment here.
NixVim
24.05
24.05
Description
I get error
this is part of init.lua managed by nixvim.
Minimal, Reproducible Example (MRE)