2021-01-17 02:21:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, intltool, gtk3, libxfce4ui,
|
2020-04-13 22:12:16 +01:00
|
|
|
libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, xfce
|
2016-09-17 15:04:29 +01:00
|
|
|
}:
|
|
|
|
|
2020-04-13 22:12:16 +01:00
|
|
|
let
|
|
|
|
category = "panel-plugins";
|
|
|
|
in
|
|
|
|
|
2016-09-17 15:04:29 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xfce4-sensors-plugin";
|
2020-04-15 18:50:53 +01:00
|
|
|
version = "1.3.92";
|
2016-09-17 15:04:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
2020-04-15 18:50:53 +01:00
|
|
|
sha256 = "04jibw23ibi61f19gc9xy400yhcdiya4px6zp8c7fjq65hyn9iix";
|
2016-09-17 15:04:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2016-09-17 15:04:29 +01:00
|
|
|
intltool
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-04-15 18:50:53 +01:00
|
|
|
gtk3
|
2016-09-17 15:04:29 +01:00
|
|
|
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
|
|
|
];
|
2021-01-15 13:21:58 +00:00
|
|
|
|
2020-04-13 22:12:16 +01:00
|
|
|
passthru.updateScript = xfce.updateScript {
|
|
|
|
inherit pname version;
|
|
|
|
attrPath = "xfce.${pname}";
|
|
|
|
versionLister = xfce.archiveLister category pname;
|
|
|
|
};
|
2016-09-17 15:04:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-15 18:50:53 +01:00
|
|
|
homepage = "https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin";
|
2016-09-17 15:04:29 +01:00
|
|
|
description = "A panel plug-in for different sensors using acpi, lm_sensors and hddtemp";
|
2020-04-13 22:12:16 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
2016-09-17 15:04:29 +01:00
|
|
|
};
|
|
|
|
}
|