Skip to content

Conversation

@MattSturgeon
Copy link
Member

Using callPackageWith adds override and overrideDerivation attributes to the result, which are not relevant to subsections of Nixvim's lib section.

Implement our own, simplified, call using intersectAttrs and functionArgs.

If users wish to modify parts of our lib section, they should extend the top-level fixpoint to ensure everything stays in sync. This can be done via the lib.nixvim.extend or lib.extend functions.

Using `callPackageWith` adds `override` and `overrideDerivation`
attributes to the result, which are not relevant to subsections of
Nixvim's lib section.

Implement our own, simplified, `call` using `intersectAttrs` and
`functionArgs`.

If users wish to modify parts of our lib section, they should extend the
top-level fixpoint to ensure everything stays in sync.
Copy link
Member

@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

@MattSturgeon MattSturgeon added this pull request to the merge queue Dec 5, 2025
Merged via the queue into nix-community:main with commit 085f50e Dec 5, 2025
4 checks passed
@MattSturgeon MattSturgeon deleted the lib-simple-call branch December 5, 2025 12:23
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.

2 participants