aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix b/infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
new file mode 100644
index 000000000000..8b8dbf3e022c
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin.nix
@@ -0,0 +1,54 @@
+{ stdenv, fetchurl, pkgconfig, intltool, gtk3, libxfce4ui,
+ libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, xfce
+}:
+
+let
+ category = "panel-plugins";
+in
+
+stdenv.mkDerivation rec {
+ pname = "xfce4-sensors-plugin";
+ version = "1.3.92";
+
+ src = fetchurl {
+ url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
+ sha256 = "04jibw23ibi61f19gc9xy400yhcdiya4px6zp8c7fjq65hyn9iix";
+ };
+
+ nativeBuildInputs = [
+ pkgconfig
+ intltool
+ ];
+
+ buildInputs = [
+ gtk3
+ libxfce4ui
+ libxfce4util
+ xfce4-panel
+ libnotify
+ lm_sensors
+ hddtemp
+ netcat-gnu
+ ];
+
+ enableParallelBuilding = true;
+
+ configureFlags = [
+ "--with-pathhddtemp=${hddtemp}/bin/hddtemp"
+ "--with-pathnetcat=${netcat-gnu}/bin/netcat"
+ ];
+
+ passthru.updateScript = xfce.updateScript {
+ inherit pname version;
+ attrPath = "xfce.${pname}";
+ versionLister = xfce.archiveLister category pname;
+ };
+
+ meta = with stdenv.lib; {
+ homepage = "https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin";
+ description = "A panel plug-in for different sensors using acpi, lm_sensors and hddtemp";
+ license = licenses.gpl2;
+ platforms = platforms.unix;
+ maintainers = [ maintainers.romildo ];
+ };
+}