From fd6f086ce306085ab4dfeead6fe681a51713aa5f Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 24 May 2025 21:53:03 +0800 Subject: [PATCH] xfce.xfce4-xkb-plugin: 0.8.5 -> 0.9.0 https://gitlab.xfce.org/panel-plugins/xfce4-xkb-plugin/-/compare/xfce4-xkb-plugin-0.8.5...xfce4-xkb-plugin-0.9.0 --- .../xfce4-xkb-plugin/default.nix | 46 +++++++++++++++---- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin/default.nix index 036f9c1eadcd..e10dc5a10631 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-xkb-plugin/default.nix @@ -1,6 +1,12 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + gettext, + meson, + ninja, + pkg-config, + glib, gtk3, libnotify, librsvg, @@ -11,18 +17,35 @@ libxfce4util, xfce4-panel, xfconf, + gitUpdater, }: -mkXfceDerivation { - category = "panel-plugins"; +stdenv.mkDerivation (finalAttrs: { pname = "xfce4-xkb-plugin"; - version = "0.8.5"; - sha256 = "sha256-oG3+OudjJIXfGII16bYaIGy4QMno00HX3kX+8H0VUcU="; + version = "0.9.0"; + + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "panel-plugins"; + repo = "xfce4-xkb-plugin"; + tag = "xfce4-xkb-plugin-${finalAttrs.version}"; + hash = "sha256-yLlUKp7X8bylJs7ioQJ36mfqFlsiZXOgFXa0ZP7AG1E="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + gettext + meson + ninja + pkg-config + ]; buildInputs = [ garcon + glib gtk3 - libnotify # optional notification support + libnotify librsvg libxfce4ui libxfce4util @@ -32,8 +55,13 @@ mkXfceDerivation { xfconf ]; - meta = with lib; { + passthru.updateScript = gitUpdater { rev-prefix = "xfce4-xkb-plugin-"; }; + + meta = { description = "Allows you to setup and use multiple keyboard layouts"; - teams = [ teams.xfce ]; + homepage = "https://gitlab.xfce.org/panel-plugins/xfce4-xkb-plugin"; + license = lib.licenses.gpl2Plus; + teams = [ lib.teams.xfce ]; + platforms = lib.platforms.linux; }; -} +})