nixpkgs/pkgs/development/tools/analysis/hotspot/default.nix

66 lines
1.4 KiB
Nix
Raw Normal View History

2017-07-06 17:05:40 +01:00
{ stdenv,
2019-11-11 09:46:30 +00:00
mkDerivation,
2017-07-06 17:05:40 +01:00
cmake,
elfutils,
extra-cmake-modules,
fetchFromGitHub,
kconfigwidgets,
ki18n,
2019-04-26 22:31:21 +01:00
kio,
2017-07-06 17:05:40 +01:00
kitemmodels,
kitemviews,
2019-04-26 22:31:21 +01:00
kwindowsystem,
2017-07-06 17:05:40 +01:00
libelf,
qtbase,
threadweaver,
}:
2019-11-11 09:46:30 +00:00
mkDerivation rec {
2019-04-26 22:31:21 +01:00
pname = "hotspot";
2020-09-04 07:13:30 +01:00
version = "1.3.0";
2017-07-06 17:05:40 +01:00
src = fetchFromGitHub {
owner = "KDAB";
repo = "hotspot";
2019-04-26 22:31:21 +01:00
rev = "v${version}";
2020-09-04 07:13:30 +01:00
sha256 = "1f68bssh3p387hkavfjkqcf7qf7w5caznmjfjldicxphap4riqr5";
2017-07-06 17:05:40 +01:00
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
2017-07-06 17:05:40 +01:00
buildInputs = [
elfutils
extra-cmake-modules
kconfigwidgets
ki18n
2019-04-26 22:31:21 +01:00
kio
2017-07-06 17:05:40 +01:00
kitemmodels
kitemviews
2019-04-26 22:31:21 +01:00
kwindowsystem
2017-07-06 17:05:40 +01:00
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
'';
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";
2017-07-06 17:05:40 +01:00
license = with stdenv.lib.licenses; [ gpl2 gpl3 ];
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ nh2 ];
};
}