29 stdenv.mkDerivation rec {
33 src = fetchFromGitHub {
37 hash = "sha256-O2wp19scyHIwIY2AzKmPmorGXDH249/OhSg+KtzOYhI=";
38 fetchSubmodules = true;
44 # stable patchelf corrupts the binary
50 (elfutils.override { enableDebuginfod = true; }) # perfparser needs to find debuginfod.h
70 "--suffix PATH : ${lib.makeBinPath [ linuxPackages.perf binutils ]}"
75 --add-rpath ${lib.makeLibraryPath [ rustc-demangle ]} \
76 --add-needed librustc_demangle.so \
77 $out/libexec/hotspot-perfparser
81 description = "GUI for Linux perf";
82 mainProgram = "hotspot";
84 hotspot is a GUI replacement for `perf report`.
85 It takes a perf.data file, parses and evaluates its contents and
86 then displays the result in a graphical way.
88 homepage = "https://github.com/KDAB/hotspot";
89 changelog = "https://github.com/KDAB/hotspot/releases/tag/v${version}";
90 license = with licenses; [ gpl2Only gpl3Only ];
91 platforms = platforms.linux;
92 maintainers = with maintainers; [ nh2 ];