From 9246d9ba335811d233241e90defd01c988e414b8 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 18 Oct 2025 12:42:08 +0200 Subject: [PATCH] performous: fix build with cmake 4 --- pkgs/by-name/pe/performous/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/pe/performous/package.nix b/pkgs/by-name/pe/performous/package.nix index 48732279f298..aa7e045c64fd 100644 --- a/pkgs/by-name/pe/performous/package.nix +++ b/pkgs/by-name/pe/performous/package.nix @@ -55,12 +55,21 @@ stdenv.mkDerivation rec { url = "https://github.com/performous/performous/commit/eb9b97f46b7d064c32ed0f086d89a70427ce1d14.patch"; hash = "sha256-98pcO/sFQJ+G67ErwlO/aAITNDPuRgPziQiF1cAlc0g="; }) + # Fix build with CMake 4 + (fetchpatch { + url = "https://github.com/performous/compact_enc_det/commit/28f46c18c60b851773b0ff61f3ce416fb09adcf3.patch?full_index=1"; + stripLen = 1; + extraPrefix = "ced-src/"; + hash = "sha256-23VD/4X4BOtcX5k+koSlRMowlbo2jAXbp3XKTXP7VrM="; + }) ]; - postPatch = '' + prePatch = '' mkdir ced-src cp -R ${cedSrc}/* ced-src + ''; + postPatch = '' substituteInPlace data/CMakeLists.txt \ --replace "/usr" "$out" '';