fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, fetchFromGitHub
3, pkg-config
4, meson
5, ninja
6, gtk4
7, libadwaita
8, python3Packages
9, gobject-introspection
10, vulkan-tools
11, python3
12, wrapGAppsHook
13, gdk-pixbuf
14, lsb-release
15, glxinfo
16, vdpauinfo
17, clinfo
18}:
19
20python3.pkgs.buildPythonApplication rec {
21 pname = "gpu-viewer";
22 version = "2.26";
23
24 format = "other";
25
26 src = fetchFromGitHub {
27 owner = "arunsivaramanneo";
28 repo = pname;
29 rev = "v${version}";
30 hash = "sha256-3GYJq76g/pU8dt+OMGBeDcw47z5Xv3AGkLsACcBCELs=";
31 };
32
33 nativeBuildInputs = [
34 pkg-config
35 meson
36 ninja
37 gobject-introspection
38 wrapGAppsHook
39 ];
40
41 buildInputs = [
42 gtk4
43 libadwaita
44 vulkan-tools
45 gdk-pixbuf
46 ];
47
48 pythonPath = with python3Packages; [
49 pygobject3
50 click
51 ];
52
53 # Prevent double wrapping
54 dontWrapGApps = true;
55
56 postFixup = ''
57 makeWrapper ${python3.interpreter} $out/bin/gpu-viewer \
58 --prefix PATH : "${lib.makeBinPath [ clinfo glxinfo lsb-release vdpauinfo vulkan-tools ]}" \
59 --add-flags "$out/share/gpu-viewer/Files/GPUViewer.py" \
60 --prefix PYTHONPATH : "$PYTHONPATH" \
61 --chdir "$out/share/gpu-viewer/Files" \
62 ''${makeWrapperArgs[@]} \
63 ''${gappsWrapperArgs[@]}
64 '';
65
66
67 meta = with lib; {
68 homepage = "https://github.com/arunsivaramanneo/GPU-Viewer";
69 description = "A front-end to glxinfo, vulkaninfo, clinfo and es2_info";
70 maintainers = with maintainers; [ GaetanLepage ];
71 license = licenses.gpl3;
72 platforms = platforms.linux;
73 };
74}