about summary refs log tree commit diff
path: root/pkgs/desktops/xfce
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2016-09-17 11:04:29 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2016-09-17 13:16:16 -0300
commit355eb44e941a16c2f76bee2612a9fef63a0d3156 (patch)
treee6ddb33367bcc0b9bedec2530be91fe6aebfe08e /pkgs/desktops/xfce
parent554ee9558d57b617dc2ba1a7995f8200caf09b11 (diff)
downloadnixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar.gz
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar.bz2
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar.lz
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar.xz
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.tar.zst
nixlib-355eb44e941a16c2f76bee2612a9fef63a0d3156.zip
xfce4-sensors-plugin: init at 1.2.6
Diffstat (limited to 'pkgs/desktops/xfce')
-rw-r--r--pkgs/desktops/xfce/default.nix1
-rw-r--r--pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix46
2 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix
index fc47f7062785..f8ede8cae45f 100644
--- a/pkgs/desktops/xfce/default.nix
+++ b/pkgs/desktops/xfce/default.nix
@@ -88,6 +88,7 @@ xfce_self = rec { # the lines are very long but it seems better than the even-od
   xfce4-hardware-monitor-plugin = callPackage ./panel-plugins/xfce4-hardware-monitor-plugin.nix { };
   xfce4_netload_plugin          = callPackage ./panel-plugins/xfce4-netload-plugin.nix          { };
   xfce4_notes_plugin            = callPackage ./panel-plugins/xfce4-notes-plugin.nix            { };
+  xfce4-sensors-plugin          = callPackage ./panel-plugins/xfce4-sensors-plugin.nix          { };
   xfce4_systemload_plugin       = callPackage ./panel-plugins/xfce4-systemload-plugin.nix       { };
   xfce4_verve_plugin            = callPackage ./panel-plugins/xfce4-verve-plugin.nix            { };
   xfce4_xkb_plugin              = callPackage ./panel-plugins/xfce4-xkb-plugin.nix              { };
diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
new file mode 100644
index 000000000000..770f34490235
--- /dev/null
+++ b/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchurl, pkgconfig, intltool, gnome2, libxfce4ui,
+  libxfce4util, xfce4panel, libnotify, lm_sensors, hddtemp, netcat
+}:
+
+stdenv.mkDerivation rec {
+  name = "${pname}-${ver_maj}.${ver_min}";
+  pname  = "xfce4-sensors-plugin";
+  ver_maj = "1.2";
+  ver_min = "6";
+
+  src = fetchurl {
+    url = "mirror://xfce/src/panel-plugins/${pname}/${ver_maj}/${name}.tar.bz2";
+    sha256 = "1h0vpqxcziml3gwrbvd8xvy1mwh9mf2a68dvxsy03rs5pm1ghpi3";
+  };
+
+  nativeBuildInputs = [
+    pkgconfig
+    intltool
+  ];
+
+  buildInputs = [
+    gnome2.gtk
+    libxfce4ui
+    libxfce4util
+    xfce4panel
+    libnotify
+    lm_sensors
+    hddtemp
+    netcat
+   ];
+
+  enableParallelBuilding = true;
+
+  configureFlags = [
+    "--with-pathhddtemp=${hddtemp}/bin/hddtemp"
+    "--with-pathnetcat=${netcat}/bin/netcat"
+  ];
+
+  meta = {
+    homepage = "http://goodies.xfce.org/projects/panel-plugins/${pname}";
+    description = "A panel plug-in for different sensors using acpi, lm_sensors and hddtemp";
+    license = stdenv.lib.licenses.gpl2;
+    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ stdenv.lib.maintainers.romildo ];
+  };
+}