Skip to content

Commit

Permalink
libgit2: Add libgit2-packbuilder-callback-interruptible.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Aug 27, 2024
1 parent 381f7fa commit bc03ad8
Show file tree
Hide file tree
Showing 2 changed files with 947 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packaging/dependencies.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,24 @@ scope: {
version = inputs.libgit2.lastModifiedDate;
cmakeFlags = attrs.cmakeFlags or []
++ [ "-DUSE_SSH=exec" ];
nativeBuildInputs = attrs.nativeBuildInputs or []
++ [
# Needed for `git apply`; see `prePatch`
pkgs.gitMinimal
];
# Only `git apply` can handle git binary patches
prePatch = ''
patch() {
git apply
}
'';
patches = attrs.patches or []
++ [ ./patches/libgit2-mempack-thin-packfile.patch ];
++ [
./patches/libgit2-mempack-thin-packfile.patch

# binary patch; see `prePatch`
./patches/libgit2-packbuilder-callback-interruptible.patch
];
});

busybox-sandbox-shell = pkgs.busybox-sandbox-shell or (pkgs.busybox.override {
Expand Down
Loading

0 comments on commit bc03ad8

Please sign in to comment.