pan: 0.146 -> 0.154

According to https://pan.rebelbase.com/download/, newer versions are
released on https://gitlab.gnome.org/GNOME/pan/
This commit is contained in:
Chuang Zhu 2023-07-25 04:22:56 +08:00
parent 12303c652b
commit 517fd7c365
2 changed files with 12 additions and 1126 deletions

View file

@ -1,11 +1,12 @@
{ spellChecking ? true
, lib
, stdenv
, fetchurl
, fetchFromGitLab
, autoreconfHook
, pkg-config
, gtk3
, gtkspell3
, gmime2
, gmime3
, gettext
, intltool
, itstool
@ -21,21 +22,19 @@
stdenv.mkDerivation rec {
pname = "pan";
version = "0.146";
version = "0.154";
src = fetchurl {
url = "https://pan.rebelbase.com/download/releases/${version}/source/pan-${version}.tar.bz2";
sha256 = "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = "v${version}";
hash = "sha256-o+JFUraSoQ0HDmldHvTX+X7rl2L4n4lJmI4UFZrsfkQ=";
};
patches = [
# Take <glib.h>, <gmime.h>, "gtk-compat.h" out of extern "C"
./move-out-of-extern-c.diff
];
nativeBuildInputs = [ autoreconfHook pkg-config gettext intltool itstool libxml2 makeWrapper ];
nativeBuildInputs = [ pkg-config gettext intltool itstool libxml2 makeWrapper ];
buildInputs = [ gtk3 gmime2 libnotify gnutls ]
buildInputs = [ gtk3 gmime3 libnotify gnutls ]
++ lib.optional spellChecking gtkspell3
++ lib.optionals gnomeSupport [ libsecret gcr ];