2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-12-18 20:50:19 +00:00
|
|
|
, fetchFromGitHub
|
2020-07-29 16:33:39 +00:00
|
|
|
, nix-update-script
|
2019-12-18 20:50:19 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, pkg-config
|
|
|
|
, pantheon
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, bamf
|
2021-06-23 18:22:04 +00:00
|
|
|
, libwnck
|
2019-12-18 20:50:19 +00:00
|
|
|
, libgee
|
|
|
|
, libgtop
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "monitor";
|
2021-09-18 12:35:51 +00:00
|
|
|
version = "0.9.5";
|
2019-12-18 20:50:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stsdc";
|
|
|
|
repo = "monitor";
|
|
|
|
rev = version;
|
2021-09-18 12:35:51 +00:00
|
|
|
sha256 = "sha256-eTsPn2Z1++KsZnnBnZ2s9fKK2HguPw+JqaRRkxQDiAk=";
|
2020-04-16 05:01:10 +00:00
|
|
|
fetchSubmodules = true;
|
2019-12-18 20:50:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
pantheon.granite
|
|
|
|
pantheon.wingpanel
|
|
|
|
libgee
|
|
|
|
libgtop
|
2021-06-23 18:22:04 +00:00
|
|
|
libwnck
|
2019-12-18 20:50:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2020-07-29 16:33:39 +00:00
|
|
|
updateScript = nix-update-script {
|
2019-12-18 20:50:19 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-18 20:50:19 +00:00
|
|
|
description = "Manage processes and monitor system resources";
|
2020-04-16 05:02:21 +00:00
|
|
|
longDescription = ''
|
|
|
|
Manage processes and monitor system resources.
|
|
|
|
To use the wingpanel indicator in this application, see the Pantheon
|
|
|
|
section in the NixOS manual.
|
|
|
|
'';
|
2019-12-18 20:50:19 +00:00
|
|
|
homepage = "https://github.com/stsdc/monitor";
|
2021-09-18 15:00:51 +00:00
|
|
|
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
|
2019-12-18 20:50:19 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|