Unverified Commit 13cd3dd8 authored by Bobby Rong's avatar Bobby Rong
Browse files
parent 9ba1df79
Loading
Loading
Loading
Loading
+17 −15
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
  stdenv,
  fetchurl,
  gettext,
  meson,
  ninja,
  pkg-config,
  xfce4-panel,
  libxfce4ui,
@@ -15,21 +17,21 @@
  gitUpdater,
}:

let
  category = "panel-plugins";
in

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
  pname = "xfce4-mailwatch-plugin";
  version = "1.3.2";
  version = "1.4.0";

  src = fetchurl {
    url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
    sha256 = "sha256-xHg/FTOJHNLgw0Bm2oWYZNzkWiPKpgFbWMufqdZafkQ=";
    url = "mirror://xfce/src/panel-plugins/xfce4-mailwatch-plugin/${lib.versions.majorMinor finalAttrs.version}/xfce4-mailwatch-plugin-${finalAttrs.version}.tar.xz";
    hash = "sha256-XCEQJdsQlmY/prjMQSE0ZKbXHyTnYyZJnYV/+B6jhh8=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    gettext
    meson
    ninja
    pkg-config
  ];

@@ -45,15 +47,15 @@ stdenv.mkDerivation rec {
  ];

  passthru.updateScript = gitUpdater {
    url = "https://gitlab.xfce.org/panel-plugins/${pname}";
    rev-prefix = "${pname}-";
    url = "https://gitlab.xfce.org/panel-plugins/xfce4-mailwatch-plugin";
    rev-prefix = "xfce4-mailwatch-plugin-";
  };

  meta = with lib; {
  meta = {
    homepage = "https://docs.xfce.org/panel-plugins/xfce4-mailwatch-plugin";
    description = "Mail watcher plugin for Xfce panel";
    license = licenses.gpl2Only;
    platforms = platforms.linux;
    teams = [ teams.xfce ];
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.linux;
    teams = [ lib.teams.xfce ];
  };
}
})