From a0fbac25d6d7c3197e9bb2be2188c64bb8e2c4f7 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Tue, 20 May 2025 20:51:07 +0800 Subject: [PATCH] xfce.xfce4-battery-plugin: 1.1.6 -> 1.2.0 https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin/-/compare/xfce4-battery-plugin-1.1.6...xfce4-battery-plugin-1.2.0 --- .../xfce4-battery-plugin/default.nix | 44 ++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin/default.nix index e80e2b58f16b..9c07356f1fc9 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-battery-plugin/default.nix @@ -1,21 +1,40 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + gettext, + meson, + ninja, + pkg-config, glib, gtk3, libxfce4ui, libxfce4util, xfce4-panel, xfconf, + gitUpdater, }: -mkXfceDerivation { - category = "panel-plugins"; +stdenv.mkDerivation (finalAttrs: { pname = "xfce4-battery-plugin"; - version = "1.1.6"; - rev-prefix = "xfce4-battery-plugin-"; - odd-unstable = false; - sha256 = "sha256-tbI4zg6BFsPzREbh/tdFiEbZVXkAsblxzcZdIaQIqa0="; + version = "1.2.0"; + + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "panel-plugins"; + repo = "xfce4-battery-plugin"; + tag = "xfce4-battery-plugin-${finalAttrs.version}"; + hash = "sha256-I4x2QRYp6H5mR4J7nQ+VZ/T3r/dj4r4M9JbgN+oZHWQ="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + gettext + meson + ninja + pkg-config + ]; buildInputs = [ glib @@ -26,8 +45,13 @@ mkXfceDerivation { xfconf ]; - meta = with lib; { + passthru.updateScript = gitUpdater { rev-prefix = "xfce4-battery-plugin-"; }; + + meta = { description = "Battery plugin for Xfce panel"; - teams = [ teams.xfce ]; + homepage = "https://gitlab.xfce.org/panel-plugins/xfce4-battery-plugin"; + license = lib.licenses.gpl2Plus; + teams = [ lib.teams.xfce ]; + platforms = lib.platforms.linux; }; -} +})