Skip to content

msgpack-tools: Fix build#454597

Merged
JohnRTitor merged 1 commit intoNixOS:masterfrom
deejayem:fix-msgpack-tools
Oct 23, 2025
Merged

msgpack-tools: Fix build#454597
JohnRTitor merged 1 commit intoNixOS:masterfrom
deejayem:fix-msgpack-tools

Conversation

@deejayem
Copy link
Member

@deejayem deejayem commented Oct 22, 2025

Currently, msgpack-tools fails to build for two reasons.

Firstly, it's specifying a cmake version that's too old, so we get an error about Compatibility with CMake < 3.5 has been removed from CMake.

Secondly, it fetches and tries to build a version of rapidjson that fails to compile.

This PR fixes those issues, and some other issues:

  • it includes some modernisations to the derivation from msgpack-tools: unbreak #436281
  • there was no maintainer, so I've added myself
  • instead of fetching tarballs of rapidjson and libb64, we use the versions from nixpkgs. It still fetches mpack, because this is unrelated to the mpack in nixpkgs, and since it's written by the author of msgpack-tools, it probably isn't used by much else

Note that the build scripts expect to find a tarball of mpack in a certain location, hence we still use fetchurl instead of fetchFromGitHub, as the latter unpacks it (and it seemed pointless to re-tar it, or to modify the upstream build scripts any more than I already have).

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.

Add a 👍 reaction to pull requests you find important.

@deejayem deejayem mentioned this pull request Oct 22, 2025
13 tasks
@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. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 22, 2025
@nixpkgs-ci nixpkgs-ci bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Oct 22, 2025
@iedame
Copy link
Contributor

iedame commented Oct 22, 2025

url = "https://github.com/ludocode/mpack/archive/df17e83f0fa8571b9cd0d8ccf38144fa90e244d1.tar.gz";
hash = "sha256-hyiXygbAHnNgF4TIg+DemBvtdBnSgJ7fAhknVuL+T/c=";
};
in
Copy link
Member

Choose a reason for hiding this comment

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

This makes it hard to override.

I would recommend moving it inside mkDerivation and access it via finalAttrs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you. Done.

Co-authored-by: Petr Zahradnik <[email protected]>
@deejayem
Copy link
Member Author

Thank you, I hadn't seen that. It looks as though patching is preferred to using cmakeFlags, so I've changed that.

Upstream has moved away from cmake, but there hasn't been a release for a long time, so I'll raise a ticket about that later on.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 23, 2025
@JohnRTitor
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 454597

Logs: https://github.com/JohnRTitor/nixpkgs-review-gha/actions/runs/18754079604


x86_64-linux

✅ 1 package built:
  • msgpack-tools

aarch64-linux

✅ 1 package built:
  • msgpack-tools

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • msgpack-tools

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • msgpack-tools

@JohnRTitor JohnRTitor added this pull request to the merge queue Oct 23, 2025
@iedame
Copy link
Contributor

iedame commented Oct 23, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 454597
Commit: 3ce779cd41f2a81282122d634b87831a978028f4 (subsequent changes)
Merge: d6468dae2568e19e9f06556d909b0fffc7d7f2ea

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/18754169081


x86_64-linux

✅ 1 package built:
  • msgpack-tools

aarch64-linux

✅ 1 package built:
  • msgpack-tools

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • msgpack-tools

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • msgpack-tools

Merged via the queue into NixOS:master with commit 5d2b7c7 Oct 23, 2025
27 of 31 checks passed
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants