Skip to content

smeagol: de-vendor libgit2, libz, zstd and enable __structuredAttrs - #571265

Merged
SuperSandro2000 merged 2 commits into
NixOS:masterfrom
kachick:smeagol-de-vendor
Oct 7, 2026
Merged

SuperSandro2000 merged 2 commits into
NixOS:masterfrom
kachick:smeagol-de-vendor

Conversation

@kachick

@kachick kachick commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

smeagol is listed in 3 issues.

# Before
> nix build .#smeagol && (ldd ./result/bin/smeagol-wiki)
        linux-vdso.so.1 (0x00007a3d75a4a000)
        libgcc_s.so.1 => /nix/store/j7qx4s4mr17j1wqgvqdzj33lmrnzb387-gcc-16.2.0-lib/lib/libgcc_s.so.1 (0x00007a3d75a14000)
        libm.so.6 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libm.so.6 (0x00007a3d74adf000)
        libc.so.6 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libc.so.6 (0x00007a3d74800000)
        /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib64/ld-linux-x86-64.so.2 (0x00007a3d75a4c000)
                
# After
> nix build .#smeagol && (ldd ./result/bin/smeagol-wiki)
        linux-vdso.so.1 (0x000071fe8bf41000)
        libzstd.so.1 => /nix/store/ph4ib8mxy5yrw40k7a1l03bfd58hq6wj-zstd-1.5.7/lib/libzstd.so.1 (0x000071fe8be62000)
        libgit2.so.1.9 => /nix/store/r04g2avwnxqafway7jq0m8c26pqqfrw5-libgit2-1.9.7-lib/lib/libgit2.so.1.9 (0x000071fe8b079000)
        libgcc_s.so.1 => /nix/store/j7qx4s4mr17j1wqgvqdzj33lmrnzb387-gcc-16.2.0-lib/lib/libgcc_s.so.1 (0x000071fe8be34000)
        libm.so.6 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libm.so.6 (0x000071fe8af58000)
        libc.so.6 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libc.so.6 (0x000071fe8ac00000)
        /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/ld-linux-x86-64.so.2 => /nix/store/znb3q6g1ik34454j3vcjx824h1871asg-glibc-2.42-84/lib64/ld-linux-x86-64.so.2 (0x000071fe8bf43000)
        libssl.so.3 => /nix/store/cxd8d2vg70c3pa31v2473hphaa1v0j44-openssl-3.5.8/lib/libssl.so.3 (0x000071fe8ae34000)
        libcrypto.so.3 => /nix/store/cxd8d2vg70c3pa31v2473hphaa1v0j44-openssl-3.5.8/lib/libcrypto.so.3 (0x000071fe8a400000)
        libllhttp.so.9.4 => /nix/store/dsamg7ahj9fxvxa2rpmlszpkavzf308r-llhttp-9.4.3/lib/libllhttp.so.9.4 (0x000071fe8be1d000)
        libpcre2-8.so.0 => /nix/store/7v8b5idfzwfl06hx6n0cvd5ikd5p0sbg-pcre2-10.48/lib/libpcre2-8.so.0 (0x000071fe8ab4e000)
        libssh2.so.1 => /nix/store/6vqggv3cdqkh098nm8brbs2mwhn6bciy-libssh2-1.11.1/lib/libssh2.so.1 (0x000071fe8bdcf000)
        libz.so.1 => /nix/store/wgw25d181h0qks7qsfp1bh7c5nd3f0s7-zlib-1.3.2/lib/libz.so.1 (0x000071fe8bdb0000)
        librt.so.1 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/librt.so.1 (0x000071fe8bdab000)
        libdl.so.2 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libdl.so.2 (0x000071fe8bda6000)
        libpthread.so.0 => /nix/store/h4wfwic161kxrr74jlzla5lsm28hgary-glibc-2.44-25/lib/libpthread.so.0 (0x000071fe8bd9f000)

Things done

@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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 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 7, 2026
@kachick

kachick commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 571265
Commit: 07021444e890e4ed68a25cb0ecb1e449b35574c1


x86_64-linux

✅ 1 package built:
  • smeagol

aarch64-linux

✅ 1 package built:
  • smeagol

aarch64-darwin

✅ 1 package built:
  • smeagol

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 7, 2026
Merged via the queue into NixOS:master with commit b912b6b Oct 7, 2026
34 checks passed
@kachick

kachick commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

Thank you for merging!


env = {
LIBGIT2_NO_VENDOR = "1";
LIBZ_SYS_STATIC = "0";

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

NOTE:

Smeagol still uses libz-sys 1.1.23, but this ENV works in 1.1.24 and later.
I did not notice this when I opened this PR. However, keeping this ENV causes no problems, and it will work with the next package update. So I prefer to keep it as is.

rust-lang/libz-sys@5cccbe7
https://github.com/AustinWise/smeagol/blob/0.5.1/Cargo.lock#L1163-L1165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

9.needs: reviewer This PR currently has no reviewers requested and needs attention. 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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants