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