Skip to content
Discussion options

You must be logged in to vote
    wrappers.neovim = wrapper.config;

^ the problem is that line

You are importing just the config set of a module as a module

So, it is missing the import statements and stuff, such as the one that imports the base neovim module from this repo.

I would think, with what you have, that building the package directly via nix build .#neovim also does not work, correct?

What you are looking for is:

    wrappers.neovim = module;

i.e.

{
  config,
  lib,
  self,
  inputs,
  ...
}:
let
  inherit (inputs) nixpkgs wrappers;
  # if you set _file and key in the module you dont need importApply you can just import and call it
  # but I left it here for now anyway
  module = nixpkgs.lib.modules.importApply

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rishyramen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #501 on May 04, 2026 02:39.