Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions packaging/dependencies.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,24 @@ scope: {
];
});

libgit2 =
if lib.versionAtLeast pkgs.libgit2.version "1.9.4" then
pkgs.libgit2
else
# Grab newer libgit2.
pkgs.libgit2.overrideAttrs rec {
version = "1.9.4";
src = pkgs.fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
tag = "v${version}";
hash = "sha256-ZKUiz3pdFE2SKxh53X2oyr7hs32Njj5YVA0OXDXz7h0=";
};
libgit2 = pkgs.libgit2.overrideAttrs (
finalAttrs: prevAttrs: {
version = "2.0.0-rc.1";
src = pkgs.fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "ae45d0d168f7e8dbfdb8c623589cb51caac96ab3";
hash = "sha256-3sbqHm37SOwBeFgtjI2DLN6kx1F7G2N1m6rRIkqDXNI=";
};
patches = prevAttrs.patches or [ ] ++ [
./patches/0001-zlib-ng-support.patch
./patches/0002-memory-config.patch
./patches/0003-packbuilder-correct-config.patch
];
cmakeFlags = prevAttrs.cmakeFlags ++ [ "-DUSE_COMPRESSION=zlib-ng" ];
buildInputs = prevAttrs.buildInputs ++ [ pkgs.zlib-ng ];
}
);

# TODO Hack until https://github.com/NixOS/nixpkgs/issues/45462 is fixed.
boost =
Expand Down
Loading
Loading