1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix

55 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-17 02:21:50 +00:00
{ lib, stdenv, fetchurl, pkg-config, intltool, gtk3, libxfce4ui,
libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, xfce
2016-09-17 15:04:29 +01:00
}:
let
category = "panel-plugins";
in
2016-09-17 15:04:29 +01:00
stdenv.mkDerivation rec {
pname = "xfce4-sensors-plugin";
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";
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 = [
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
netcat-gnu
2016-09-17 15:04:29 +01:00
];
enableParallelBuilding = true;
configureFlags = [
"--with-pathhddtemp=${hddtemp}/bin/hddtemp"
"--with-pathnetcat=${netcat-gnu}/bin/netcat"
2016-09-17 15:04:29 +01:00
];
2021-01-15 13:21:58 +00:00
passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};
2016-09-17 15:04:29 +01:00
meta = with lib; {
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";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
2016-09-17 15:04:29 +01:00
};
}