From 81a06528427eee46dddbbc378f4e3870c6646811 Mon Sep 17 00:00:00 2001 From: hensoko Date: Mon, 6 Oct 2025 12:21:38 +0200 Subject: [PATCH] libcec_platform: use latest master from upstream --- .../development/libraries/libcec/platform.nix | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libcec/platform.nix b/pkgs/development/libraries/libcec/platform.nix index 11139df5e027..52f61d413544 100644 --- a/pkgs/development/libraries/libcec/platform.nix +++ b/pkgs/development/libraries/libcec/platform.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, }: @@ -13,11 +14,28 @@ stdenv.mkDerivation rec { owner = "Pulse-Eight"; repo = "platform"; rev = "p8-platform-${version}"; - sha256 = "sha256-zAI/AOLJAunv+cCQ6bOXrgkW+wl5frj3ktzx2cDeCCk="; + hash = "sha256-zAI/AOLJAunv+cCQ6bOXrgkW+wl5frj3ktzx2cDeCCk="; }; nativeBuildInputs = [ cmake ]; + patches = [ + # required for cmake 4 support + (fetchpatch { + name = "libcec-platform-fix-cmake4-1.patch"; + url = "https://github.com/Pulse-Eight/platform/commit/7350df98980b4e7036812b15812e3cb3c9353816.patch"; + includes = [ "CMakeLists.txt" ]; + hash = "sha256-YbxQxmXF2Iv67SjX/kMD9Df2nggBFX0fBFMyNdXXZtI="; + }) + # required for cmake 4 support + (fetchpatch { + name = "libcec-platform-fix-cmake4-5.patch"; + url = "https://github.com/Pulse-Eight/platform/commit/d7faed1c696b1a6a67f114a63a0f4c085f0f9195.patch"; + includes = [ "CMakeLists.txt" ]; + hash = "sha256-T+quL5wxc1w+KyNGxW443Ud+r6FVPej6jN6oXQ5pkRs="; + }) + ]; + cmakeFlags = lib.optional stdenv.hostPlatform.isDarwin "-DCMAKE_CXX_FLAGS='-std=c++11'"; meta = with lib; {