Bobby Rong
2025-05-21 21:17:28 +08:00
parent 64e3a34120
commit 9ba1df7952
@@ -3,29 +3,33 @@
stdenv,
fetchurl,
gettext,
meson,
ninja,
pkg-config,
libxfce4util,
xfce4-panel,
xfconf,
libxfce4ui,
glib,
gtk3,
gitUpdater,
}:
let
category = "panel-plugins";
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "xfce4-genmon-plugin";
version = "4.2.1";
version = "4.3.0";
src = fetchurl {
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-3lQFYuHqWPNanIFeIHNtJq9UGgqTcgERSMt1tfC2WVE=";
url = "mirror://xfce/src/panel-plugins/xfce4-genmon-plugin/${lib.versions.majorMinor finalAttrs.version}/xfce4-genmon-plugin-${finalAttrs.version}.tar.xz";
hash = "sha256-B3GXkR2E5boi57uJXObAONu9jo4AZ+1vTkhQK3FnooI=";
};
strictDeps = true;
nativeBuildInputs = [
gettext
meson
ninja
pkg-config
];
@@ -34,19 +38,20 @@ stdenv.mkDerivation rec {
libxfce4ui
xfce4-panel
xfconf
glib
gtk3
];
passthru.updateScript = gitUpdater {
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
rev-prefix = "${pname}-";
url = "https://gitlab.xfce.org/panel-plugins/xfce4-genmon-plugin";
rev-prefix = "xfce4-genmon-plugin-";
};
meta = with lib; {
meta = {
homepage = "https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin";
description = "Generic monitor plugin for the Xfce panel";
license = licenses.gpl2Plus;
platforms = platforms.linux;
teams = [ teams.xfce ];
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.linux;
teams = [ lib.teams.xfce ];
};
}
})