From e47f4fd34d1f1b3f7b78d2200fcefdf4ce2d01e7 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 23 Feb 2026 22:36:10 +0100 Subject: [PATCH] lomiri.biometryd: Fix compatibility with Boost 1.89 --- .../lomiri/services/biometryd/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/desktops/lomiri/services/biometryd/default.nix b/pkgs/desktops/lomiri/services/biometryd/default.nix index e02025cb850d..db01da04bb95 100644 --- a/pkgs/desktops/lomiri/services/biometryd/default.nix +++ b/pkgs/desktops/lomiri/services/biometryd/default.nix @@ -2,10 +2,10 @@ stdenv, lib, fetchFromGitLab, + fetchpatch, gitUpdater, testers, - # https://gitlab.com/ubports/development/core/biometryd/-/issues/8 - boost186, + boost, cmake, cmake-extras, dbus, @@ -39,6 +39,15 @@ stdenv.mkDerivation (finalAttrs: { "dev" ]; + patches = [ + # Remove when version > 0.4.0 + (fetchpatch { + name = "0001-biometryd-Fix-compatibility-with-Boost-1.87.patch"; + url = "https://gitlab.com/ubports/development/core/biometryd/-/commit/8def6dfb18ee56971f0f64e3622af2a5a39ab0f6.patch"; + hash = "sha256-PddZRML4Gc+s4aNeOyZwJJjmPSixMGFVFNcrO9dNDSI="; + }) + ]; + postPatch = '' # Substitute systemd's prefix in pkg-config call substituteInPlace data/CMakeLists.txt \ @@ -66,7 +75,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ - boost186 + boost cmake-extras dbus dbus-cpp