depot/third_party/nixpkgs/pkgs/applications/misc/phwmon/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

40 lines
1,009 B
Nix

{ lib, stdenv, fetchFromGitLab, python2Packages }:
stdenv.mkDerivation {
pname = "phwmon";
version = "2017-04-10";
src = fetchFromGitLab {
owner = "o9000";
repo = "phwmon";
rev = "b162e53dccc4adf8f11f49408d05fd85d9c6c909";
sha256 = "1hqmsq66y8bqkpvszw84jyk8haxq3cjnz105hlkmp7786vfmkisq";
};
nativeBuildInputs = [ python2Packages.wrapPython ];
buildInputs = [ python2Packages.pygtk python2Packages.psutil ];
pythonPath = [ python2Packages.pygtk python2Packages.psutil ];
patchPhase = ''
substituteInPlace install.sh --replace "/usr/local" "$out"
'';
installPhase = ''
mkdir -p $out/bin $out/share/applications
./install.sh
'';
postFixup = ''
wrapPythonPrograms
'';
meta = {
homepage = "https://gitlab.com/o9000/phwmon";
description = "Hardware monitor (CPU, memory, network and disk I/O) for the system tray";
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.romildo ];
};
}