diff options
author | José Romildo Malaquias <malaquias@gmail.com> | 2016-05-18 07:49:01 -0300 |
---|---|---|
committer | José Romildo Malaquias <malaquias@gmail.com> | 2016-05-18 07:49:01 -0300 |
commit | 992c97e83e7cbe4e1262ed72d710a1ba8efecfca (patch) | |
tree | 4cd736c67a3948fd3f00eeac67b8556ff87d5426 /pkgs/applications | |
parent | d541e0dc1c05f5514bf30f8039e687adddb45616 (diff) |
phwmon: init at 2016-03-13
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/phwmon/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/applications/misc/phwmon/default.nix b/pkgs/applications/misc/phwmon/default.nix new file mode 100644 index 000000000000..e5dd22bfbb1f --- /dev/null +++ b/pkgs/applications/misc/phwmon/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchFromGitLab, pythonPackages }: + +stdenv.mkDerivation rec { + name = "phwmon-${version}"; + version = "2016-03-13"; + + src = fetchFromGitLab { + owner = "o9000"; + repo = "phwmon"; + rev = "90247ceaff915ad1040352c5cc9195e4153472d4"; + sha256 = "1gkjfmd8rai7bl1j7jz9drmzlw72n7mczl0akv39ya4l6k8plzvv"; + }; + + nativeBuildInputs = [ pythonPackages.wrapPython ]; + + buildInputs = [ pythonPackages.pygtk pythonPackages.psutil ]; + + pythonPath = [ pythonPackages.pygtk pythonPackages.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 = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.romildo ]; + }; +} |