From 9ba1df7952d557470f696a5d82b7e30b49f9d5ce Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 21 May 2025 20:52:01 +0800 Subject: [PATCH] xfce.xfce4-genmon-plugin: 4.2.1 -> 4.3.0 https://gitlab.xfce.org/panel-plugins/xfce4-genmon-plugin/-/compare/xfce4-genmon-plugin-4.2.1...xfce4-genmon-plugin-4.3.0 --- .../xfce4-genmon-plugin/default.nix | 33 +++++++++++-------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin/default.nix index 7527abf65e8c..e3e10aa01e57 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin/default.nix @@ -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 ]; }; -} +})