Skip to content

mrpack-install: fix build on darwin, modernize - #563889

Merged
pbsds merged 1 commit into
NixOS:masterfrom
iedame:fix/mrpack-install
Sep 19, 2026
Merged

pbsds merged 1 commit into
NixOS:masterfrom
iedame:fix/mrpack-install

Conversation

@iedame

@iedame iedame commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

This PR includes the following fixes for mrpack-install:

  • Fix version string: Corrected ldflags variable capitalization (buildinfo.Version) so the binary correctly displays its version.
  • Fix Darwin build: Skipped path traversal tests exclusively on Darwin. These fail due to macOS symlinking /tmp to /private/tmp, which breaks the test's hardcoded string prefix checks, but it does not affect actual package usage.

Before:

./result/bin/mrpack-install -V
mrpack-install ? 

After:

./result/bin/mrpack-install -V
mrpack-install 0.16.10

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from encode42 September 16, 2026 13:17
@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. labels Sep 16, 2026
@iedame

This comment was marked as outdated.

@encode42 encode42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not thrilled with the semantics change (let ... in -> finalAttrs), but I'd rather the package build on darwin than nitpick. Version correctly reported now.

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 563889
Commit: 2db16f07dbc0feb08f0050ace9b79213f9ed7e7a


aarch64-darwin

✅ 1 package built:
  • mrpack-install

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Sep 18, 2026
@iedame

iedame commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (d5406bd)

Command: nixpkgs-review pr 563889
Commit: cc6f2ff44a2a801a58d1ed44ed0310f5fd485e57 (subsequent changes)
Merge: 4f0763eb6ac02746e3464d6e726adf2b0d9dd3a5

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/35354298593/attempts/1


x86_64-linux

✅ 1 package built:
  • mrpack-install

aarch64-linux

✅ 1 package built:
  • mrpack-install

x86_64-darwin

✅ No rebuilds


aarch64-darwin (sandbox = relaxed)

✅ 1 package built:
  • mrpack-install

@pbsds
pbsds added this pull request to the merge queue Sep 19, 2026
Merged via the queue into NixOS:master with commit 3eb6899 Sep 19, 2026
27 checks passed
@iedame
iedame deleted the fix/mrpack-install branch September 19, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants