2022-01-11 23:40:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, python2Packages }:
|
2016-05-18 11:49:01 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "phwmon";
|
2017-05-09 19:47:49 +01:00
|
|
|
version = "2017-04-10";
|
2016-05-18 11:49:01 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "o9000";
|
|
|
|
repo = "phwmon";
|
2017-05-09 19:47:49 +01:00
|
|
|
rev = "b162e53dccc4adf8f11f49408d05fd85d9c6c909";
|
|
|
|
sha256 = "1hqmsq66y8bqkpvszw84jyk8haxq3cjnz105hlkmp7786vfmkisq";
|
2016-05-18 11:49:01 +01:00
|
|
|
};
|
|
|
|
|
2022-01-11 23:40:02 +00:00
|
|
|
nativeBuildInputs = [ python2Packages.wrapPython ];
|
2016-05-18 11:49:01 +01:00
|
|
|
|
2022-01-11 23:40:02 +00:00
|
|
|
buildInputs = [ python2Packages.pygtk python2Packages.psutil ];
|
2016-05-18 11:49:01 +01:00
|
|
|
|
2022-01-11 23:40:02 +00:00
|
|
|
pythonPath = [ python2Packages.pygtk python2Packages.psutil ];
|
2021-01-01 13:46:40 +00:00
|
|
|
|
2016-05-18 11:49:01 +01:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace install.sh --replace "/usr/local" "$out"
|
|
|
|
'';
|
2021-01-01 13:46:40 +00:00
|
|
|
|
2016-05-18 11:49:01 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/applications
|
|
|
|
./install.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonPrograms
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.com/o9000/phwmon";
|
2016-05-18 11:49:01 +01:00
|
|
|
description = "Hardware monitor (CPU, memory, network and disk I/O) for the system tray";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.romildo ];
|
2016-05-18 11:49:01 +01:00
|
|
|
};
|
|
|
|
}
|