From 5ed8b2d0f168494f6bfcf2b6f6c875588e17c78d Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 10 Oct 2025 15:29:21 +0200 Subject: [PATCH] kernelshark: fix build with cmake4 --- pkgs/os-specific/linux/trace-cmd/kernelshark.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/os-specific/linux/trace-cmd/kernelshark.nix b/pkgs/os-specific/linux/trace-cmd/kernelshark.nix index 5ab8049a50cf..003b2a006aa7 100644 --- a/pkgs/os-specific/linux/trace-cmd/kernelshark.nix +++ b/pkgs/os-specific/linux/trace-cmd/kernelshark.nix @@ -15,6 +15,7 @@ freefont_ttf, wrapQtAppsHook, qtwayland, + fetchpatch, }: stdenv.mkDerivation (finalAttrs: { @@ -26,6 +27,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-OT6ClyZRE+pxWwm+sfzvN3CnoCIyxcAiVsi1fdzaT4M="; }; + patches = [ + # kernelshark: Allow building with CMake 4+ + (fetchpatch { + url = "https://lore.kernel.org/linux-trace-devel/20251010131715.1123934-1-michal.sojka@cvut.cz/raw"; + hash = "sha256-hT+EhauFlQGjhXyq7Z9FwjS3C+0Jlz6n5BDKCXwzBCc="; + }) + ]; + outputs = [ "out" ]; nativeBuildInputs = [