diff --git a/pkgs/os-specific/linux/kernel/perf/default.nix b/pkgs/os-specific/linux/kernel/perf/default.nix index bd9bd6d95db5..1ae1bae26fd6 100644 --- a/pkgs/os-specific/linux/kernel/perf/default.nix +++ b/pkgs/os-specific/linux/kernel/perf/default.nix @@ -64,6 +64,10 @@ stdenv.mkDerivation { # Linux scripts patchShebangs scripts + '' + lib.optionalString (lib.versionAtLeast kernel.version "6.3") '' + # perf-specific scripts + patchShebangs tools/perf/pmu-events + '' + '' cd tools/perf for x in util/build-id.c util/dso.c; do