jami: fix build with libgit2 1.8.4

This commit is contained in:
linsui 2024-11-17 21:55:11 +08:00
parent 324b806102
commit 6b4dfe7199

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