jami: fix build with libgit2 1.8.4

(cherry picked from commit 6b4dfe7199)
This commit is contained in:
linsui 2024-11-17 21:55:11 +08:00 committed by github-actions[bot]
parent 96dcda230c
commit 05469c7903

View File

@ -188,6 +188,12 @@ stdenv.mkDerivation rec {
inherit src version meta;
sourceRoot = "${src.name}/daemon";
# Fix for libgit2 breaking changes
postPatch = ''
substituteInPlace src/jamidht/conversationrepository.cpp \
--replace-fail "git_commit* const" "const git_commit*"
'';
nativeBuildInputs = [
autoreconfHook
pkg-config