30 stdenv.mkDerivation rec {
34 src = fetchFromGitHub {
38 hash = "sha256-Kk3L4hfHon0B6Y6vU7en1UFpg221+EiVCxMX9mvu7pU=";
39 fetchSubmodules = true;
71 # Force link against Xext, otherwise build fails with:
72 # ld: /nix/store/...-libXNVCtrl-495.46/lib/libXNVCtrl.a(NVCtrl.o): undefined reference to symbol 'XextAddDisplay'
73 # ld: /nix/store/...-libXext-1.3.4/lib/libXext.so.6: error adding symbols: DSO missing from command line
74 # https://github.com/stsdc/monitor/issues/292
75 NIX_LDFLAGS = "-lXext";
77 mesonFlags = [ "-Dindicator-wingpanel=enabled" ];
80 chmod +x meson/post_install.py
81 patchShebangs meson/post_install.py
83 # Alternatively, using pkg-config here should just work.
84 substituteInPlace meson.build --replace \
85 "meson.get_compiler('c').find_library('libcurl', dirs: vapidir)" \
86 "meson.get_compiler('c').find_library('libcurl', dirs: '${curl.out}/lib')"
90 updateScript = gitUpdater {
91 # Upstream frequently tags these to fix CI, which are mostly irrelevant to us.
92 ignoredVersions = "-";
97 description = "Manage processes and monitor system resources";
99 Manage processes and monitor system resources.
100 To use the wingpanel indicator in this application, see the Pantheon
101 section in the NixOS manual.
103 homepage = "https://github.com/stsdc/monitor";
104 maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
105 platforms = platforms.linux;
106 license = licenses.gpl3Plus;
107 mainProgram = "com.github.stsdc.monitor";