diff options
author | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-05-18 16:49:14 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@users.noreply.github.com> | 2016-05-18 16:49:14 +0200 |
commit | 3cd63ade1614d4c581735ffb0cebe181bf87dfc8 (patch) | |
tree | 2c760944b771d54133e7d52de04492601cd74ea4 /pkgs | |
parent | 480ecd26df2253f03c5627f9a5c08089d522571a (diff) | |
parent | 992c97e83e7cbe4e1262ed72d710a1ba8efecfca (diff) |
Merge pull request #15532 from romildo/new.phwmon
phwmon: init at 2016-03-13
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/phwmon/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/phwmon/default.nix b/pkgs/applications/misc/phwmon/default.nix new file mode 100644 index 0000000000000..e5dd22bfbb1f2 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f15c65b0ff59c..c7e68726fec10 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13672,6 +13672,8 @@ in phototonic = qt5.callPackage ../applications/graphics/phototonic { }; + phwmon = callPackage ../applications/misc/phwmon { }; + pianobar = callPackage ../applications/audio/pianobar { }; pianobooster = callPackage ../applications/audio/pianobooster { }; |