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 28, 2024
1 parent 8213b9e commit f015c5b
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.buildPackages.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 f015c5b

Please sign in to comment.