NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.86k stars 1.52k forks source link

Buid error #11925

Closed Boria138 closed 1 day ago

Boria138 commented 1 day ago

When trying to build nix 2.25.2 I get an error

[x86_64] src/libfetchers/git-utils.cc: In member function 'virtual void nix::GitRepoImpl::flush()':
[x86_64] src/libfetchers/git-utils.cc:288:13: error: 'git_mempack_write_thin_pack' was not declared in this scope
[x86_64] 288 | git_mempack_write_thin_pack(mempack_backend, packBuilder.get())

As far as I understand it, this is related to the dependency libfetchers on the git_mempack_write_thin_pack function, which is not present in any version of libgit2 even in the latest version 1.8.4 only in commit https://github.com/libgit2/libgit2/commit/f9c35fb50998d1c9d26293a18ade3d7c32f6ecb0.

Ericson2314 commented 1 day ago

Yes you need a patched version of the library. Our build of nix with nix provides it.