2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, pkg-config
|
|
|
|
, pantheon
|
|
|
|
, python3
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
2021-06-28 23:13:55 +00:00
|
|
|
, libwnck
|
2020-04-24 23:36:52 +00:00
|
|
|
, libgee
|
|
|
|
, libgtop
|
2021-12-06 16:07:01 +00:00
|
|
|
, libhandy
|
|
|
|
, sassc
|
|
|
|
, udisks2
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "monitor";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.11.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stsdc";
|
|
|
|
repo = "monitor";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-xWhhjn7zk/juXx50wLG2TpB5aqU+588kWBBquWrVJbM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
pantheon.granite
|
|
|
|
pantheon.wingpanel
|
|
|
|
libgee
|
|
|
|
libgtop
|
2021-12-06 16:07:01 +00:00
|
|
|
libhandy
|
2021-06-28 23:13:55 +00:00
|
|
|
libwnck
|
2021-12-06 16:07:01 +00:00
|
|
|
sassc
|
|
|
|
udisks2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/post_install.py
|
|
|
|
patchShebangs meson/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2020-08-20 17:08:02 +00:00
|
|
|
updateScript = nix-update-script {
|
2020-04-24 23:36:52 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Manage processes and monitor system resources";
|
|
|
|
longDescription = ''
|
|
|
|
Manage processes and monitor system resources.
|
|
|
|
To use the wingpanel indicator in this application, see the Pantheon
|
|
|
|
section in the NixOS manual.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/stsdc/monitor";
|
2021-09-22 15:38:15 +00:00
|
|
|
maintainers = with maintainers; [ xiorcale ] ++ teams.pantheon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
2021-12-06 16:07:01 +00:00
|
|
|
mainProgram = "com.github.stsdc.monitor";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|