From 6b4dfe719935f214eb1e6c2a1468e5f3daf0673a Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Sun, 17 Nov 2024 21:55:11 +0800 Subject: [PATCH] jami: fix build with libgit2 1.8.4 --- .../networking/instant-messengers/jami/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/jami/default.nix b/pkgs/applications/networking/instant-messengers/jami/default.nix index a3df5958beb6..b9f02397e3b5 100644 --- a/pkgs/applications/networking/instant-messengers/jami/default.nix +++ b/pkgs/applications/networking/instant-messengers/jami/default.nix @@ -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