2016-09-17 15:04:29 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, gnome2, libxfce4ui,
|
2018-03-12 22:55:30 +00:00
|
|
|
libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu
|
2016-09-17 15:04:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
2018-03-12 22:55:30 +00:00
|
|
|
xfce4-panel
|
2016-09-17 15:04:29 +01:00
|
|
|
libnotify
|
|
|
|
lm_sensors
|
|
|
|
hddtemp
|
2016-10-30 01:52:47 +01:00
|
|
|
netcat-gnu
|
2016-09-17 15:04:29 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-pathhddtemp=${hddtemp}/bin/hddtemp"
|
2016-10-30 01:52:47 +01:00
|
|
|
"--with-pathnetcat=${netcat-gnu}/bin/netcat"
|
2016-09-17 15:04:29 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|