Bobby Rong
2025-05-20 21:47:52 +08:00
parent e06158e58f
commit a0fbac25d6
@@ -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;
};
}
})