1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

libgit2, GitRepo: Write thin packfiles

libgit2 didn't write thin ones, hence the patch.

This should improve performance on systems with weak I/O in ~/.cache,
especially in terms of operations per second, or where system calls
are slower. (macOS, VMs?)
This commit is contained in:
Robert Hensing 2024-08-19 13:21:44 +02:00
parent cb4b9be458
commit 5dd6c4f062
4 changed files with 343 additions and 0 deletions

View file

@ -115,6 +115,8 @@ scope: {
version = inputs.libgit2.lastModifiedDate;
cmakeFlags = attrs.cmakeFlags or []
++ [ "-DUSE_SSH=exec" ];
patches = attrs.patches or []
++ [ ./patches/libgit2-mempack-thin-packfile.patch ];
});
busybox-sandbox-shell = pkgs.busybox-sandbox-shell or (pkgs.busybox.override {