diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix b/nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix new file mode 100644 index 000000000000..89ffbff3db71 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix @@ -0,0 +1,66 @@ +{ stdenv, + cmake, + elfutils, + extra-cmake-modules, + fetchFromGitHub, + kconfigwidgets, + ki18n, + kio, + kitemmodels, + kitemviews, + kwindowsystem, + libelf, + qtbase, + threadweaver, +}: + +stdenv.mkDerivation rec { + pname = "hotspot"; + version = "1.2.0"; + + src = fetchFromGitHub { + owner = "KDAB"; + repo = "hotspot"; + rev = "v${version}"; + sha256 = "05rkzrvak93z8mzcpm4mcjxb933l8pjsxr9a595wfn1gn2ihmada"; + fetchSubmodules = true; + }; + + buildInputs = [ + cmake + elfutils + extra-cmake-modules + kconfigwidgets + ki18n + kio + kitemmodels + kitemviews + kwindowsystem + libelf + qtbase + threadweaver + ]; + + # hotspot checks for the presence of third party libraries' + # git directory to give a nice warning when you forgot to clone + # submodules; but Nix clones them and removes .git (for reproducibility). + # So we need to fake their existence here. + postPatch = '' + mkdir -p 3rdparty/perfparser/.git + ''; + + enableParallelBuilding = true; + + meta = { + description = "A GUI for Linux perf"; + longDescription = '' + hotspot is a GUI replacement for `perf report`. + It takes a perf.data file, parses and evaluates its contents and + then displays the result in a graphical way. + ''; + homepage = https://github.com/KDAB/hotspot; + license = with stdenv.lib.licenses; [ gpl2 gpl3 ]; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ nh2 ]; + }; +} |