diff --git a/pkgs/desktops/xfce/core/tumbler/default.nix b/pkgs/desktops/xfce/core/tumbler/default.nix index d5c94785967b..721c7601ef34 100644 --- a/pkgs/desktops/xfce/core/tumbler/default.nix +++ b/pkgs/desktops/xfce/core/tumbler/default.nix @@ -1,6 +1,11 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + gettext, + pkg-config, + xfce4-dev-tools, + wrapGAppsNoGuiHook, ffmpegthumbnailer, gdk-pixbuf, glib, @@ -15,14 +20,27 @@ gst_all_1, webp-pixbuf-loader, libxfce4util, + gitUpdater, }: -mkXfceDerivation { - category = "xfce"; +stdenv.mkDerivation (finalAttrs: { pname = "tumbler"; version = "4.20.1"; - sha256 = "sha256-p4lAFNvCakqrsDa2FP0xbc/khx6eYqAlHwWkk8yEB7Y="; + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "xfce"; + repo = "tumbler"; + tag = "tumbler-${finalAttrs.version}"; + hash = "sha256-p4lAFNvCakqrsDa2FP0xbc/khx6eYqAlHwWkk8yEB7Y="; + }; + + nativeBuildInputs = [ + gettext + pkg-config + xfce4-dev-tools + wrapGAppsNoGuiHook + ]; buildInputs = [ libxfce4util @@ -58,8 +76,19 @@ mkXfceDerivation { wrapGApp $out/lib/tumbler-1/tumblerd ''; + configureFlags = [ "--enable-maintainer-mode" ]; + enableParallelBuilding = true; + + passthru.updateScript = gitUpdater { + rev-prefix = "tumbler-"; + odd-unstable = true; + }; + meta = { description = "D-Bus thumbnailer service"; + homepage = "https://gitlab.xfce.org/xfce/tumbler"; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.linux; teams = [ lib.teams.xfce ]; }; -} +})