summary refs log tree commit diff
path: root/pkgs/tools/system/psensor
diff options
context:
space:
mode:
authorCharles Strahan <charles@cstrahan.com>2017-05-23 17:56:00 -0400
committerCharles Strahan <charles@cstrahan.com>2017-06-13 18:51:36 -0400
commit3b1c4fce4fc18cd8ce51fc895527ecfa273d2761 (patch)
treed1decc45991f81daa19ddfcefc600216e7feae8f /pkgs/tools/system/psensor
parent631ec734eb74bfdd267fda595929492bd34cfcc2 (diff)
downloadnixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar.gz
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar.bz2
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar.lz
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar.xz
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.tar.zst
nixpkgs-3b1c4fce4fc18cd8ce51fc895527ecfa273d2761.zip
psensor: init at 1.2.0
psensor is a graphical hardware monitoring application for Linux
Diffstat (limited to 'pkgs/tools/system/psensor')
-rw-r--r--pkgs/tools/system/psensor/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/system/psensor/default.nix b/pkgs/tools/system/psensor/default.nix
new file mode 100644
index 00000000000..b62bb92564c
--- /dev/null
+++ b/pkgs/tools/system/psensor/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, fetchurl, pkgconfig, lm_sensors, libgtop, libatasmart, gtk3
+, libnotify, udisks2, libXNVCtrl, wrapGAppsHook
+}:
+
+stdenv.mkDerivation rec {
+  name = "psensor-${version}";
+
+  version = "1.2.0";
+
+  src = fetchurl {
+    url = "http://wpitchoune.net/psensor/files/psensor-${version}.tar.gz";
+    sha256 = "1smbidbby4rh14jnh9kn7y64qf486aqnmyxcgacjvkz27cqqnw4r";
+  };
+
+  nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
+
+  buildInputs = [
+    lm_sensors libgtop libatasmart gtk3 libnotify udisks2
+  ];
+
+  preConfigure = ''
+    NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${libXNVCtrl}/include"
+    NIX_LDFLAGS="$NIX_LDFLAGS -L${libXNVCtrl}/lib"
+  '';
+
+  meta = with lib; {
+    description = "Graphical hardware monitoring application for Linux";
+    homepage = "https://wpitchoune.net/psensor/";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ cstrahan ];
+  };
+}