Skip to content

vimPlugins.nidhogg-nvim: move to non-generated - #481439

Closed
PerchunPak wants to merge 1 commit into
NixOS:masterfrom
PerchunPak:codeberg-plugin
Closed

PerchunPak wants to merge 1 commit into
NixOS:masterfrom
PerchunPak:codeberg-plugin

Conversation

@PerchunPak

@PerchunPak PerchunPak commented Jan 18, 2026 •

Copy link
Copy Markdown
Member

Our new updater will support only GitHub plugins, so we move everything to non-generated

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 18, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 6.topic: vim Advanced text editor labels Jan 18, 2026

@GaetanLepage GaetanLepage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is the motivation for moving this out of generated.nix?

@teto

teto commented Jan 18, 2026

Copy link
Copy Markdown
Member

i suppose because the updater doesn't support codeberg ? but yes it should be included in the commit message

Our new updater will support only GitHub plugins, so we move everything
else to `non-generated`
@PerchunPak

Copy link
Copy Markdown
Member Author

i suppose because the updater doesn't support codeberg ? but yes it should be included in the commit message

Yes you are right, added description to commit

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 19, 2026

@GaetanLepage GaetanLepage left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Our new updater will support only GitHub plugins, so we move everything to non-generated

You are talking about #380691?

AFAIK, we have still not reached a consensus on whether it was desirable to move to your solution. Hence, we should not conduct migrations before agreeing on merging #480691.

@PerchunPak

Copy link
Copy Markdown
Member Author

AFAIK, we have still not reached a consensus on whether it was desirable to move to your solution. Hence, we should not conduct migrations before agreeing on merging

We already did such migrations and raise an error if the user tries to add a non-GitHub plugin (although not a user-friendly one)
#376366
c87fe13
#376366 (comment)

I do, however, agree that my PR is stale, no idea why, and how I can improve that situation

Also, that fetchFromGitea was added in https://github.com/NixOS/nixpkgs/pull/480024/changes#diff-54bef7a6c9c5497e77086f7935fbfe5c45e285f36f12f15b7044f42430e8e3ebR7 without changing the update script, so it is clear the author of that PR didn't use the script

@GaetanLepage

Copy link
Copy Markdown
Contributor

AFAIK, we have still not reached a consensus on whether it was desirable to move to your solution. Hence, we should not conduct migrations before agreeing on merging

We already did such migrations and raise an error if the user tries to add a non-GitHub plugin (although not a user-friendly one) #376366 c87fe13 #376366 (comment)

I do, however, agree that my PR is stale, no idea why, and how I can improve that situation

Also, that fetchFromGitea was added in https://github.com/NixOS/nixpkgs/pull/480024/changes#diff-54bef7a6c9c5497e77086f7935fbfe5c45e285f36f12f15b7044f42430e8e3ebR7 without changing the update script, so it is clear the author of that PR didn't use the script

Ok, thanks for reminding me that we already moved non-github plugins to non-generated.
However, I do feel like it should not have been done.
Indeed, the reason you originally gave was that The future version of updater won't support anything except GitHub because it creates a lot of maintenance, and it is just easier to handle such plugins independently..
However, again, at this stage nobody ACKed the transition to the "new updater".

As for the reason why your PR is stale, I would say that:

  • The benefits to switching are still unclear (to me at least)
  • Relying on an out-of-tree library while we currently have a self-contained vendor script that seems to work fine, looks like a downgrade
  • The PR is massive and we are all surely short on time

@PerchunPak

Copy link
Copy Markdown
Member Author

The benefits to switching are still unclear (to me at least)

There is a "Feature comparison" section in #380691, which describes the pros and cons. I also just cleaned up the description

Relying on an out-of-tree library while we currently have a self-contained vendor script that seems to work fine, looks like a downgrade

I don't really see a difference. Relying on a script, which can only be understood by LLM, because of the spaghetti mess, is a much bigger downside to me.

The PR is massive and we are all surely short on time

If you remove the commit that replaces generated files, it is +295 -243 lines

@PerchunPak PerchunPak closed this Jan 20, 2026
@PerchunPak
PerchunPak deleted the codeberg-plugin branch January 20, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: vim Advanced text editor 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants