From 9e32dc6ddb6c513a6567ff366baeadd5133162af Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 11 Oct 2025 15:03:13 +0200 Subject: [PATCH] lomiri.teleports: Fix CMake 4 compatibility --- .../lomiri/applications/teleports/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/desktops/lomiri/applications/teleports/default.nix b/pkgs/desktops/lomiri/applications/teleports/default.nix index 07818bcf22e5..590e7f2a6b5e 100644 --- a/pkgs/desktops/lomiri/applications/teleports/default.nix +++ b/pkgs/desktops/lomiri/applications/teleports/default.nix @@ -68,6 +68,19 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-zxxFvoj6jluGPCA9GQsxuYYweaSOVrkD01hZwCtq52U="; }) + # Fix CMake 4 compatibility + # Remove when version > 1.21 + (fetchpatch { + name = "0002-teleports-CMakeLists.txt-Support-building-with-CMake-4.patch"; + url = "https://gitlab.com/ubports/development/apps/teleports/-/commit/ffb4e745889a473a208a86a29b7e439129930b01.patch"; + hash = "sha256-EdcCHH/0Zq8wcF6UPyvy16wntDeSqTV9LWQat91LNRo="; + }) + (fetchpatch { + name = "0003-teleports-libs-qtdlib-CMakeLists.txt-Support-building-with-CMake-4.patch"; + url = "https://gitlab.com/ubports/development/apps/teleports/-/commit/fe7f0cb304ddaefae9f97917d3edc89de5f21b1f.patch"; + hash = "sha256-yIc/l6iHb5qWI0QZOx8Hhd0lgEYyPozL+AjrmF2L89k="; + }) + # Remove when https://gitlab.com/ubports/development/apps/teleports/-/merge_requests/586 merged & in release ./1001-app-CMakeLists.txt-Drop-explicit-dependency-on-rlottie.patch ];