wgsl-analyzer is not in NixOS stable #579
-
It seems that about 2 weeks ago wgsl was added to the supported lsp languages. It uses pkgs.wgsl-analyzer as it's default package. Unfortunately this package is only available in the unstable channel meaning nvf can't be used if your main channel is stable. I do have unstable as an extra input on my flake but for the life of me cannot work out how to pass the unstable package through to nvf. I am also unsure why I am having to declare a package for lsp support for a language that I have not enabled. I am fully aware that this might just be a quirk of the way my system is configured so wanted to start a discussion to see if I could get any help before opening an issue. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
nvf follows nixos-unstable by default. Removing a possible # flake.nix
inputs = {
unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nvf = {
url = "github:NotAShelf/nvf";
inputs.nixpkgs.follows = "unstable";
};
};
This is a "quirk" of Nix. Even though the package will not be realized (i.e. it won't be fetched into your store) Nix evaluates, or rather, tries to evaluate it to e.g., calculate hashes. |
Beta Was this translation helpful? Give feedback.
nvf follows nixos-unstable by default. Removing a possible
inputs.nixpkgs.follows
line would automatically have your nvf use the same nixpkgs channel as this repository. Though if you have an input for unstable, then setinputs.nixpkgs.follows
underinputs.nvf
to the name of your unstable input. For example:This is a "quirk" of Nix. Even though the package will not be realized (i.e. it won't …