Bobby Rong
2025-05-22 23:31:49 +08:00
parent 9e0f4552d8
commit 003cedf55d
@@ -3,50 +3,59 @@
stdenv,
fetchurl,
gettext,
meson,
ninja,
pkg-config,
xfce4-panel,
glib,
gtk3,
libgtop,
libxfce4ui,
libxfce4util,
upower,
xfconf,
gitUpdater,
}:
let
category = "panel-plugins";
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xfce4-systemload-plugin";
version = "1.3.3";
version = "1.4.0";
src = fetchurl {
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-aFLV2cmnTQ4NtYLG9f5zkOvkii61aSF3rhLhxMzG78k=";
url = "mirror://xfce/src/panel-plugins/xfce4-systemload-plugin/${lib.versions.majorMinor finalAttrs.version}/xfce4-systemload-plugin-${finalAttrs.version}.tar.xz";
hash = "sha256-bjY7z4RbuIMptShY1loexuANtRIa6SRuRusDE12VacY=";
};
strictDeps = true;
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
];
buildInputs = [
glib
gtk3
libgtop
libxfce4ui
libxfce4util
upower
xfce4-panel
xfconf
];
passthru.updateScript = gitUpdater {
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
rev-prefix = "${pname}-";
url = "https://gitlab.xfce.org/panel-plugins/xfce4-systemload-plugin";
rev-prefix = "xfce4-systemload-plugin-";
};
meta = with lib; {
meta = {
homepage = "https://docs.xfce.org/panel-plugins/xfce4-systemload-plugin";
description = "System load plugin for Xfce panel";
license = licenses.bsd2;
platforms = platforms.linux;
teams = [ teams.xfce ];
license = lib.licenses.bsd2;
platforms = lib.platforms.linux;
teams = [ lib.teams.xfce ];
};
}
})