1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ stdenv,
mkDerivation,
cmake,
elfutils,
extra-cmake-modules,
fetchFromGitHub,
kconfigwidgets,
ki18n,
kio,
kitemmodels,
kitemviews,
kwindowsystem,
libelf,
qtbase,
threadweaver,
}:
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 ];
};
}
|