From 086b5a60c2e1be09c7329fde7a7c3f8a0635c59e Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 25 May 2025 22:17:20 +0800 Subject: [PATCH] xfce.thunar-media-tags-plugin: 0.5.0 -> 0.6.0 https://gitlab.xfce.org/panel-plugins/thunar-media-tags-plugin/-/compare/thunar-media-tags-plugin-0.5.0...thunar-media-tags-plugin-0.6.0 --- .../thunar-plugins/media-tags/default.nix | 49 +++++++++++++++---- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/pkgs/desktops/xfce/thunar-plugins/media-tags/default.nix b/pkgs/desktops/xfce/thunar-plugins/media-tags/default.nix index ff8dce3843c3..7f6eb45d72f4 100644 --- a/pkgs/desktops/xfce/thunar-plugins/media-tags/default.nix +++ b/pkgs/desktops/xfce/thunar-plugins/media-tags/default.nix @@ -1,24 +1,48 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + fetchpatch, + meson, + ninja, + pkg-config, glib, gtk3, thunar, libxfce4util, gettext, taglib, + gitUpdater, }: -mkXfceDerivation { - category = "thunar-plugins"; +stdenv.mkDerivation (finalAttrs: { pname = "thunar-media-tags-plugin"; - version = "0.5.0"; - odd-unstable = false; + version = "0.6.0"; - sha256 = "sha256-71YBA1deR8aV8hoZ4F0TP+Q5sdcVQAB9n3B+pcpJMSQ="; + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "thunar-plugins"; + repo = "thunar-media-tags-plugin"; + tag = "thunar-media-tags-plugin-${finalAttrs.version}"; + hash = "sha256-qEoBga+JSxpByOjqhOspjYknF0p74oXZnpoDz2MSBOA="; + }; + + patches = [ + # meson-build: Fix typo libxfce4ui -> libxfce4util + # https://gitlab.xfce.org/thunar-plugins/thunar-media-tags-plugin/-/merge_requests/14 + (fetchpatch { + url = "https://gitlab.xfce.org/thunar-plugins/thunar-media-tags-plugin/-/commit/4e19a56deeeefa6d913f7b15a12b30a5d99119d4.patch"; + hash = "sha256-ASVknxEiGOWbE82hVlgEAOqE+8TknAh/ULQg55mfs9o="; + }) + ]; + + strictDeps = true; nativeBuildInputs = [ gettext + meson + ninja + pkg-config ]; buildInputs = [ @@ -29,9 +53,14 @@ mkXfceDerivation { taglib ]; - meta = with lib; { + passthru.updateScript = gitUpdater { rev-prefix = "thunar-media-tags-plugin-"; }; + + meta = { description = "Thunar plugin providing tagging and renaming features for media files"; - maintainers = with maintainers; [ ncfavier ]; - teams = [ teams.xfce ]; + homepage = "https://gitlab.xfce.org/thunar-plugins/thunar-media-tags-plugin"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ ncfavier ]; + teams = [ lib.teams.xfce ]; + platforms = lib.platforms.linux; }; -} +})