From ff7f75dfccec524e33f472e27fad2ca8742d873b Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 14 Nov 2022 04:30:27 +0000 Subject: [PATCH] perf-linux: fix build on linux 5.4 --- pkgs/os-specific/linux/kernel/perf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/perf/default.nix b/pkgs/os-specific/linux/kernel/perf/default.nix index e3a387b8115b..2006c7b0bcdb 100644 --- a/pkgs/os-specific/linux/kernel/perf/default.nix +++ b/pkgs/os-specific/linux/kernel/perf/default.nix @@ -69,7 +69,7 @@ stdenv.mkDerivation { postPatch = '' patchShebangs scripts tools/perf/pmu-events/jevents.py - + '' + lib.optionalString (lib.versionAtLeast kernel.version "5.8") '' substituteInPlace tools/perf/scripts/python/flamegraph.py \ --replace "/usr/share/d3-flame-graph/d3-flamegraph-base.html" \ "${d3-flame-graph-templates}/share/d3-flame-graph/d3-flamegraph-base.html"