1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 cmake,
7 pkg-config,
8 qttools,
9 wrapQtAppsHook,
10 qtbase,
11 qtwayland,
12 qtsvg,
13 qt3d,
14 qtdeclarative,
15 qtconnectivity,
16 qtlocation,
17 qtscxml,
18 qtwebengine,
19 kdePackages,
20 wayland,
21 elfutils,
22 libbfd,
23}:
24
25stdenv.mkDerivation rec {
26 pname = "gammaray";
27 version = "3.1.0";
28
29 src = fetchFromGitHub {
30 owner = "KDAB";
31 repo = pname;
32 rev = "v${version}";
33 hash = "sha256-mJw9yckbkFVYZlcakai/hH/gAD0xOQir5JqGMNnB/dE=";
34 };
35
36 patches = [
37 (fetchpatch {
38 name = "fix-build-for-Qt-6_9.patch";
39 url = "https://github.com/KDAB/GammaRay/commit/750195c8172bc7c2e805cbf28d3993d65c17b5a0.patch";
40 hash = "sha256-HQLOOkNmrGMoBDAK5am/NePnAF3Jsa5F0WyUjaJ2tYw=";
41 })
42 ];
43
44 nativeBuildInputs = [
45 cmake
46 pkg-config
47 qttools
48 wrapQtAppsHook
49 ];
50
51 buildInputs = [
52 qtbase
53 qtwayland
54 qtsvg
55 qt3d
56 qtdeclarative
57 qtconnectivity
58 qtlocation
59 qtscxml
60 qtwebengine
61 kdePackages.kcoreaddons
62 wayland
63 elfutils
64 libbfd
65 ];
66
67 cmakeFlags = [
68 # FIXME: build failed when enable BUILD_DOCS with qtwayland in buildInputs
69 "-DGAMMARAY_BUILD_DOCS=OFF"
70 ];
71
72 meta = with lib; {
73 description = "Software introspection tool for Qt applications developed by KDAB";
74 homepage = "https://github.com/KDAB/GammaRay";
75 license = licenses.gpl2Plus;
76 platforms = platforms.linux;
77 maintainers = with maintainers; [ rewine ];
78 mainProgram = "gammaray";
79 };
80}