Unverified Commit 086b5a60 authored by Bobby Rong's avatar Bobby Rong
Browse files
parent 79d51420
Loading
Loading
Loading
Loading
+39 −10
Original line number Diff line number Diff line
{
  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;
  };
}
})