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