Skip to content

harmonia: use system zstd and sqlite - #580583

Merged
RossSmyth merged 1 commit into
NixOS:staging-nextfrom
NyCodeGHG:push-luokwovvkmxu
Oct 29, 2026
Merged

RossSmyth merged 1 commit into
NixOS:staging-nextfrom
NyCodeGHG:push-luokwovvkmxu

Conversation

@NyCodeGHG

Copy link
Copy Markdown
Member

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested a review from Mic92 October 29, 2026 16:40
@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. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Oct 29, 2026
@Mic92

Mic92 commented Oct 29, 2026

Copy link
Copy Markdown
Member

Does this do anything?

% ldd /home/joerg/.cache/nixpkgs-review/pr-580583/results/harmonia-x86_64-linux/bin/harmonia
        linux-vdso.so.1 (0x0000701c63d12000)
        libgcc_s.so.1 => /nix/store/7a2cjhcgzyym5zaz6m4fksw47qvm150w-gcc-16.2.0-lib/lib/libgcc_s.so.1 (0x0000701c63c72000)
        libc.so.6 => /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/libc.so.6 (0x0000701c63a59000)
        /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 => /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib64/ld-linux-x86-64.so.2 (0x0000701c63d14000)

@Mic92

Mic92 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

I see this being used in other rust packages:

  env = {
    ZSTD_SYS_USE_PKG_CONFIG = true;
    LIBSQLITE3_SYS_USE_PKG_CONFIG = true;
  };

check the garage package.

@NyCodeGHG

NyCodeGHG commented Oct 29, 2026 •

Copy link
Copy Markdown
Member Author

Does this do anything?

% ldd /home/joerg/.cache/nixpkgs-review/pr-580583/results/harmonia-x86_64-linux/bin/harmonia
        linux-vdso.so.1 (0x0000701c63d12000)
        libgcc_s.so.1 => /nix/store/7a2cjhcgzyym5zaz6m4fksw47qvm150w-gcc-16.2.0-lib/lib/libgcc_s.so.1 (0x0000701c63c72000)
        libc.so.6 => /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/libc.so.6 (0x0000701c63a59000)
        /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/ld-linux-x86-64.so.2 => /nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib64/ld-linux-x86-64.so.2 (0x0000701c63d14000)

yes, harmonia-cache links against them

edit: apparently not on master

I see this being used in other rust packages:

  env = {
    ZSTD_SYS_USE_PKG_CONFIG = true;
    LIBSQLITE3_SYS_USE_PKG_CONFIG = true;
  };

check the garage package.

that is the default on staging-next, where harmonia currently breaks

@NyCodeGHG
NyCodeGHG marked this pull request as draft October 29, 2026 18:00
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@NyCodeGHG
NyCodeGHG changed the base branch from master to staging-next October 29, 2026 18:01
@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge conflict This PR has merge conflicts with the target branch and removed 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Oct 29, 2026
@NyCodeGHG
NyCodeGHG marked this pull request as ready for review October 29, 2026 18:01
@nixpkgs-ci nixpkgs-ci Bot closed this Oct 29, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Oct 29, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed their stale review October 29, 2026 18:03

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Oct 29, 2026

@avlnoir avlnoir 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.

Built and tested on x86_64-linux. Confirmed that harmonia-cache loads Nixpkgs’ SQLite and zstd libraries.

Looks good to me. Thx :)

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 29, 2026

@RossSmyth RossSmyth 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.

builds, runs after build, ldd shows new dependencies

will run the vm tests before merging.

@RossSmyth

Copy link
Copy Markdown
Contributor

vm tests pass

@RossSmyth
RossSmyth added this pull request to the merge queue Oct 29, 2026
@nixpkgs-ci nixpkgs-ci Bot removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 29, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Oct 29, 2026
Merged via the queue into NixOS:staging-next with commit 7eab334 Oct 29, 2026
45 of 59 checks passed
@NyCodeGHG
NyCodeGHG deleted the push-luokwovvkmxu branch November 29, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 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: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants