Replies: 5 comments 1 reply
-
nixCats has no flake inputs. There is no nixpkgs to override. The warning is correct. non-existent input indeed. It uses the nixpkgs you pass where you call the utils.baseBuilder function. So you can just pass it whatever nixpkgs you wish. If you are using the module, the nixpkgs_version option does the same. nixCats is a no-dependency library which contains a builder function that may receive a nixpkgs or pkgs to use. |
Beta Was this translation helpful? Give feedback.
-
in the overriding template (which is actually more of a tutorial than a template to be honest and should probably have a readme), it is importing an already existing configuration, (the example template's configuration) which does have a nixpkgs. Note the URL here nixCats-nvim/templates/overriding/flake.nix Lines 15 to 16 in e94f31a And we can see that the flake of the example template does have a nixpkgs nixCats-nvim/templates/example/flake.nix Lines 24 to 28 in e94f31a But the base nixCats flake that outputs just the nixCats library with the builder in it has no flake inputs whatsoever. Lines 1 to 22 in e94f31a |
Beta Was this translation helpful? Give feedback.
-
so yeah if you were wondering how the nixCats-nvim repo has no top level flake.lock, that is why. It has nothing to lock. utils/default.nix relies only on the builtin functions in nix to import and thus there is no required nixpkgs input. This is also how it works well with or without flakes despite not using flake-compat |
Beta Was this translation helpful? Give feedback.
-
in the default template, the main builder function is called here nixCats-nvim/templates/fresh/flake.nix Lines 206 to 209 in e94f31a and in the flakeless one, here nixCats-nvim/templates/flakeless/default.nix Line 121 in e94f31a and the modules call it for you. And here are the docs for it https://nixcats.org/nixCats_utils.html#function-library-nixCats.utils.baseBuilder That is what defines the pkgs that pkgs.neovim-unwrapped gets pulled from by default (although you can also set neovim-unwrapped settting in your packageDefinitions!) It is also what controls the pkgs provided to your packageDefinitions and your categoryDefinitions Unless you pass in a pkgs directly, (in which case, that will be used directly if possible), nixCats will resolve a pkgs for you from the nixpkgs you provide. In this way, nixCats can work with a variety of nix implementations, such as lix and tvix, and a variety of nixpkgs versions and implementations as well! |
Beta Was this translation helpful? Give feedback.
-
Ahh, now I got it thank you! I didn't spot that you have been referencing the
got it! worked around it by setting
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to use nvim 11.x, so I wanted to make nixCats follow the unstable channel just as I would do for other flakes.
It is also kind of the same as you did in your template: https://github.com/BirdeeHub/nixCats-nvim/blob/main/templates/overriding/flake.nix
Unfortunately, this does not work as I get the following warning during rebuild:
warning: input 'nixCats' has an override for a non-existent input 'nixpkgs'
Beta Was this translation helpful? Give feedback.
All reactions