Skip to content

Conversation

@nixpkgs-ci
Copy link
Contributor

@nixpkgs-ci nixpkgs-ci bot commented Oct 21, 2025

Bot-based backport to staging-25.05, triggered by a label in #412768.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

…ionCheckProgram`

Should `versionCheckProgram` not be specified, the hook now first defaults to
`$outputBin/bin/$NIX_MAIN_PROGRAM` before considering `$outputBin/bin/$pname`.
Falling back to $pname will also emit a warning now, similar to that of
`lib.getExe`.

(cherry picked from commit 1b92d2f)
@JohnRTitor
Copy link
Member

#412768 (comment)

JohnRTitor added a commit to JohnRTitor/nixpkgs that referenced this pull request Oct 21, 2025
This should be reverted once/if NixOS#454228 is merged to release-25.05.
Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

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

I don’t think it’s acceptable to make meta cause rebuilds on the release branch. This change has been controversial enough in unstable; see e.g. #412768 (comment) and #430810.


- `meta.mainProgram`: Changing this `meta` entry can lead to a package rebuild due to being used to determine the `NIX_MAIN_PROGRAM` environment variable.

- `versionCheckHook`: Packages that previously relied solely on `pname` to locate the program used to version check, but have a differing `meta.mainProgram` entry, might now fail.
Copy link
Member

Choose a reason for hiding this comment

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

As you can see here, this is a breaking change, and therefore not suitable for backport.

@JohnRTitor JohnRTitor closed this Oct 21, 2025
@JohnRTitor JohnRTitor deleted the backport-412768-to-staging-25.05 branch October 21, 2025 17:31
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