From a7fc0296998dc46c075ccd06140a55aafe71d1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 18 Sep 2025 12:20:04 +0200 Subject: [PATCH] linuxPackages_latest.rr-zen_workaround: fix build Upstream has already merged a this fix, but there's no release yet. --- pkgs/development/tools/analysis/rr/zen_workaround.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/tools/analysis/rr/zen_workaround.nix b/pkgs/development/tools/analysis/rr/zen_workaround.nix index 4ca50b7eb1f7..d7b8664d8993 100644 --- a/pkgs/development/tools/analysis/rr/zen_workaround.nix +++ b/pkgs/development/tools/analysis/rr/zen_workaround.nix @@ -1,6 +1,7 @@ { stdenv, lib, + fetchpatch, kernel, rr, }: @@ -15,6 +16,14 @@ stdenv.mkDerivation { inherit (rr) src version; sourceRoot = "${rr.src.name}/third-party/zen-pmu-workaround"; + patches = [ + (fetchpatch { + name = "kernel-6.16.patch"; + url = "https://github.com/rr-debugger/rr/commit/86aa1ebe03c6a7f60eb65249233f866fd3da8316.diff"; + stripLen = 2; + hash = "sha256-zj5MNwlZmWnagu0tE5Jl5a48wEF0lqNTh4KcbhmOkOo="; + }) + ]; hardeningDisable = [ "pic" ]; nativeBuildInputs = kernel.moduleBuildDependencies;