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 1/2] 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 From 13a26c516c2aa8535c88919ea80de1f99306c4cb Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Sun, 17 Nov 2024 23:06:31 +0800 Subject: [PATCH 2/2] jami: 20240823 -> 20241031.0 --- .../networking/instant-messengers/jami/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/jami/default.nix b/pkgs/applications/networking/instant-messengers/jami/default.nix index b9f02397e3b5..ba1c6d69c01c 100644 --- a/pkgs/applications/networking/instant-messengers/jami/default.nix +++ b/pkgs/applications/networking/instant-messengers/jami/default.nix @@ -24,7 +24,6 @@ libnatpmp, libpulseaudio, libupnp, - yaml-cpp, msgpack-cxx, openssl, restinio, @@ -32,6 +31,7 @@ speex, udev, webrtc-audio-processing, + yaml-cpp, zlib, # for dhtnet @@ -68,14 +68,14 @@ stdenv.mkDerivation rec { pname = "jami"; - version = "20240823.0"; + version = "20241031.0"; src = fetchFromGitLab { domain = "git.jami.net"; owner = "savoirfairelinux"; repo = "jami-client-qt"; rev = "stable/${version}"; - hash = "sha256-7jGH54sFiS6qrdEiKSS64lJyJXL1FOJVbesxo/FFmyA="; + hash = "sha256-LKezdzM+ltUSgW4GmTXICyufx9mI1AVbdEcwSp6tmao="; fetchSubmodules = true; }; @@ -137,7 +137,7 @@ stdenv.mkDerivation rec { domain = "git.jami.net"; owner = "savoirfairelinux"; repo = "dhtnet"; - rev = "cfe512b0632eea046f683b22e42d01eeb943d751"; + rev = "8cd00200669fa5b7632faa447ba206c3847e2879"; hash = "sha256-SGidaCi5z7hO0ePJIZIkcWAkb+cKsZTdksVS7ldpjME="; }; @@ -173,6 +173,8 @@ stdenv.mkDerivation rec { "-DBUILD_BENCHMARKS=Off" "-DBUILD_TOOLS=Off" "-DBUILD_TESTING=Off" + "-DBUILD_DEPENDENCIES=Off" + "-DBUILD_EXAMPLE=Off" ]; meta = with lib; { @@ -218,7 +220,6 @@ stdenv.mkDerivation rec { libnatpmp libpulseaudio libupnp - yaml-cpp msgpack-cxx opendht-jami openssl @@ -228,6 +229,7 @@ stdenv.mkDerivation rec { speex udev webrtc-audio-processing + yaml-cpp zlib ];