Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimPlugins.gen-nvim: init at 2024-05-03 #309123

Merged
merged 1 commit into from
Mar 23, 2025
Merged

Conversation

codebam
Copy link
Contributor

@codebam codebam commented May 4, 2024

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

Copy link
Member

@PerchunPak PerchunPak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, looks good. Just these two minor things.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 9, 2024
@wegank wegank added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jan 2, 2025
@github-actions github-actions bot removed the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Mar 23, 2025
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 23, 2025
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 309123 --package vimPlugins.gen-nvim


x86_64-linux

✅ 1 package built:
  • vimPlugins.gen-nvim

aarch64-linux

✅ 1 package built:
  • vimPlugins.gen-nvim

x86_64-darwin

✅ 1 package built:
  • vimPlugins.gen-nvim

aarch64-darwin

✅ 1 package built:
  • vimPlugins.gen-nvim

Copy link
Contributor

@GaetanLepage GaetanLepage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GaetanLepage GaetanLepage requested a review from PerchunPak March 23, 2025 20:44
Copy link
Member

@Samasaur1 Samasaur1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether it's patched into the source or added as a runtime dep, ollama should be added alongside curl. See:

https://github.com/David-Kunz/gen.nvim/blob/c9a73d8c0d462333da6d2191806ff98f2884d706/lua/gen/init.lua#L52

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 23, 2025
@Samasaur1
Copy link
Member

Whether it's patched into the source or added as a runtime dep, ollama should be added alongside curl. See:

https://github.com/David-Kunz/gen.nvim/blob/c9a73d8c0d462333da6d2191806ff98f2884d706/lua/gen/init.lua#L52

It was brought up on Matrix that ollama is a pretty hefty package and users may want to bring their own variant (e.g. the CUDA variant, or a non-Nix version). This plugin allows configuring the commands, so actual use isn't an issue, but you wouldn't be able to avoid a closure size increase. Maybe we don't want to add ollama to the runtimeDeps? Or maybe there's some way to configure which (if any) version of ollama should be added to runtimeDeps? I know this is possible with "normal" packages but I don't know how easy it is with vim plugins.

@GaetanLepage
Copy link
Contributor

Whether it's patched into the source or added as a runtime dep, ollama should be added alongside curl. See:
https://github.com/David-Kunz/gen.nvim/blob/c9a73d8c0d462333da6d2191806ff98f2884d706/lua/gen/init.lua#L52

It was brought up on Matrix that ollama is a pretty hefty package and users may want to bring their own variant (e.g. the CUDA variant, or a non-Nix version). This plugin allows configuring the commands, so actual use isn't an issue, but you wouldn't be able to avoid a closure size increase. Maybe we don't want to add ollama to the runtimeDeps? Or maybe there's some way to configure which (if any) version of ollama should be added to runtimeDeps? I know this is possible with "normal" packages but I don't know how easy it is with vim plugins.

I agree, we should let user the possibility and responsibility to provide ollama.

Copy link
Member

@PerchunPak PerchunPak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with previous comment, but overall LGTM

@Samasaur1
Copy link
Member

Okay, so take ollama back out of runtimeDeps and then good to merge?

@PerchunPak
Copy link
Member

Yes

@codebam
Copy link
Contributor Author

codebam commented Mar 23, 2025

Done

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 309123 --package vimPlugins.gen-nvim


x86_64-linux

✅ 1 package built:
  • vimPlugins.gen-nvim

aarch64-linux

✅ 1 package built:
  • vimPlugins.gen-nvim

x86_64-darwin

✅ 1 package built:
  • vimPlugins.gen-nvim

aarch64-darwin

✅ 1 package built:
  • vimPlugins.gen-nvim

@GaetanLepage GaetanLepage merged commit e0c5715 into NixOS:master Mar 23, 2025
23 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants