Skip to content

neovim: add extraLuaPackages to neovim, fixes #1964.#2617

Merged
teto merged 1 commit intonix-community:masterfrom
ashinkarov:tema/master
Feb 16, 2022
Merged

neovim: add extraLuaPackages to neovim, fixes #1964.#2617
teto merged 1 commit intonix-community:masterfrom
ashinkarov:tema/master

Conversation

@ashinkarov
Copy link
Copy Markdown
Contributor

Description

Extend neovim program to allow specifying additional lua libraries that will become available to neovim at runtime. See #1964 for further details.

Checklist

  • Change is backwards compatible.

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all.

  • Test cases updated/added.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

This is a rebased version of the #1970 which got closed by some reason, without being merged. Can we please merge this? @teto ?

@ashinkarov ashinkarov requested a review from rycee as a code owner January 6, 2022 22:04
@ashinkarov
Copy link
Copy Markdown
Contributor Author

Can anybody initiate the ci on this pull request, @teto @rycee?

@ashinkarov
Copy link
Copy Markdown
Contributor Author

ashinkarov commented Jan 14, 2022

Fellows, can you please help me figure out what is going on with the failing tests? If I look at the output of the run I see:

building '/nix/store/2k765k36lpjva3l84wzb48j97kxfxrmj-nmt-report-gh-config-file.drv'...
error: attribute 'override' missing

       at /nix/store/gdfpd7k0yyihpq1k05l4k0g33lx4n7jw-source/pkgs/top-level/all-packages.nix:25721:40:

        25720|
        25721|   gitMinimal = appendToName "minimal" (git.override {
             |                                        ^
        25722|     withManual = false;
(use '--show-trace' to show detailed location information)
Error: Process completed with exit code 1.

I doubt that the fail has to do with my changes.

Also, it seems the fail appears only after some very recent nixos update, as the tests ran cleanly when I opened the PR.

How do we go about it?

@berbiche
Copy link
Copy Markdown
Member

berbiche commented Jan 15, 2022

building '/nix/store/2k765k36lpjva3l84wzb48j97kxfxrmj-nmt-report-gh-config-file.drv'...
error: attribute 'override' missing

       at /nix/store/gdfpd7k0yyihpq1k05l4k0g33lx4n7jw-source/pkgs/top-level/all-packages.nix:25721:40:

        25720|
        25721|   gitMinimal = appendToName "minimal" (git.override {
             |                                        ^
        25722|     withManual = false;
(use '--show-trace' to show detailed location information)
Error: Process completed with exit code 1.

Hi,

You need to rebase your changes on the "master" branch to have the fix that will resolve this test failure.

Similarly to extraPytonPackages, we add extraLuaPackages that make
lua libraries available at runtime.
@ashinkarov
Copy link
Copy Markdown
Contributor Author

Thanks, @berbiche ! I did the rebase. I guess somebody needs to approve the run of ci again. Can you do this?

@ashinkarov
Copy link
Copy Markdown
Contributor Author

Dear @teto @rycee @berbiche, could you please initate the ci run for the pr, so that we could finally merge this in.

@teto
Copy link
Copy Markdown
Collaborator

teto commented Jan 31, 2022

'wrapLuaProgram' in nixpkgs should wrap automatically with LUA_(C)PATH. It might be broken though.

@ashinkarov
Copy link
Copy Markdown
Contributor Author

'wrapLuaProgram' in nixpkgs should wrap automatically with LUA_(C)PATH. It might be broken though.

The last time I have tried, nvim still couldn't find the right library. Can we please merge this in, and then we'll try to improve it?

@teto
Copy link
Copy Markdown
Collaborator

teto commented Feb 16, 2022

Let's merge this until we have a better fix in nixpkgs

@teto teto merged commit a3c18a6 into nix-community:master Feb 16, 2022
teto pushed a commit to teto/home-manager that referenced this pull request Aug 22, 2022
…ix-community#2617)

Similarly to extraPytonPackages, we add extraLuaPackages that make
lua libraries available at runtime.
@teto teto mentioned this pull request Aug 22, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants