mirror of
https://github.com/NixOS/nix
synced 2025-07-08 11:03:54 +02:00
libgit2: Add libgit2-packbuilder-callback-interruptible.patch
This commit is contained in:
parent
57c48304bb
commit
c1fe3546ed
2 changed files with 947 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue