1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5 meson,
6 ninja,
7 pkg-config,
8 gobject-introspection,
9 wrapGAppsHook4,
10 desktop-file-utils,
11 libadwaita,
12}:
13
14python3Packages.buildPythonApplication rec {
15 pname = "monitorets";
16 version = "0.10.1";
17 # built with meson, not a python format
18 pyproject = false;
19
20 src = fetchFromGitHub {
21 owner = "jorchube";
22 repo = "monitorets";
23 tag = version;
24 hash = "sha256-Y6cd9Wf2IzHwdxzLUP/U4rervlPUr8s2gKSW8y5I7bg=";
25 };
26
27 nativeBuildInputs = [
28 meson
29 ninja
30 pkg-config
31 gobject-introspection
32 wrapGAppsHook4
33 desktop-file-utils
34 ];
35
36 buildInputs = [ libadwaita ];
37
38 dependencies = with python3Packages; [
39 pygobject3
40 xdg
41 psutil
42 ];
43
44 dontWrapGApps = true;
45
46 preFixup = ''
47 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
48 '';
49
50 meta = {
51 description = "Simple and quick view at the usage of your computer resources";
52 homepage = "https://github.com/jorchube/monitorets";
53 license = with lib.licenses; [
54 gpl3Plus
55 cc0
56 ];
57 mainProgram = "monitorets";
58 maintainers = with lib.maintainers; [ aleksana ];
59 platforms = lib.platforms.linux;
60 };
61}