1{
2 mkDerivation,
3 lib,
4 extra-cmake-modules,
5 kdoctools,
6 karchive,
7 ki18n,
8 kio,
9 perl,
10 python3,
11 php,
12 qttools,
13 kdbusaddons,
14 makeBinaryWrapper,
15 graphviz,
16}:
17
18mkDerivation {
19 pname = "kcachegrind";
20 meta = {
21 homepage = "https://apps.kde.org/kcachegrind/";
22 description = "Profiler frontend";
23 license = with lib.licenses; [ gpl2 ];
24 maintainers = with lib.maintainers; [ orivej ];
25 };
26 nativeBuildInputs = [
27 extra-cmake-modules
28 kdoctools
29 makeBinaryWrapper
30 ];
31 buildInputs = [
32 karchive
33 ki18n
34 kio
35 perl
36 python3
37 php
38 qttools
39 kdbusaddons
40 ];
41 postInstall = ''
42 wrapProgram $out/bin/kcachegrind \
43 --suffix PATH : "${lib.makeBinPath [ graphviz ]}"
44 '';
45}