diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-time-out-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-time-out-plugin/default.nix index 9a263b13cf0c..317edc3bb139 100644 --- a/pkgs/desktops/xfce/panel-plugins/xfce4-time-out-plugin/default.nix +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-time-out-plugin/default.nix @@ -1,34 +1,57 @@ { + stdenv, lib, - mkXfceDerivation, + fetchFromGitLab, + gettext, + meson, + ninja, + pkg-config, glib, gtk3, + libX11, libxfce4ui, libxfce4util, xfce4-panel, - xfconf, + gitUpdater, }: -mkXfceDerivation { - category = "panel-plugins"; +stdenv.mkDerivation (finalAttrs: { pname = "xfce4-time-out-plugin"; - version = "1.1.4"; - rev-prefix = "xfce4-time-out-plugin-"; - odd-unstable = false; - sha256 = "sha256-FYcmeOBSBxcPSm/4j294DSi8XZBTKHvAwTBdj0yCY7o="; + version = "1.2.0"; + + src = fetchFromGitLab { + domain = "gitlab.xfce.org"; + owner = "panel-plugins"; + repo = "xfce4-time-out-plugin"; + tag = "xfce4-time-out-plugin-${finalAttrs.version}"; + hash = "sha256-hyeqSnynsjAeD67oPjQs0ZeLKreXFMZXmvu38zweqrE="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + gettext + meson + ninja + pkg-config + ]; buildInputs = [ glib gtk3 + libX11 libxfce4ui libxfce4util xfce4-panel - xfconf ]; - meta = with lib; { + passthru.updateScript = gitUpdater { rev-prefix = "xfce4-time-out-plugin-"; }; + + meta = { description = "Panel plug-in to take periodical breaks from the computer"; - license = licenses.gpl2Plus; - teams = [ teams.xfce ]; + homepage = "https://gitlab.xfce.org/panel-plugins/xfce4-time-out-plugin"; + license = lib.licenses.gpl2Plus; + teams = [ lib.teams.xfce ]; + platforms = lib.platforms.linux; }; -} +})