2019-03-11 14:07:13 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk3, vala, enchant2, wrapGAppsHook, meson, ninja
|
2019-02-21 20:57:23 +00:00
|
|
|
, desktop-file-utils, gnome-online-accounts, gsettings-desktop-schemas, adwaita-icon-theme
|
2020-02-09 00:39:25 +00:00
|
|
|
, libpeas, libsecret, gmime3, isocodes, libxml2, gettext, fetchpatch
|
2019-02-21 20:57:23 +00:00
|
|
|
, sqlite, gcr, json-glib, itstool, libgee, gnome3, webkitgtk, python3
|
2020-02-09 00:39:25 +00:00
|
|
|
, xvfb_run, dbus, shared-mime-info, libunwind, folks, glib-networking
|
2019-09-02 17:44:27 +01:00
|
|
|
, gobject-introspection, gspell, appstream-glib, libytnef, libhandy }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-21 20:57:23 +00:00
|
|
|
pname = "geary";
|
2020-05-03 14:23:14 +01:00
|
|
|
version = "3.36.2";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-21 20:57:23 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-05-03 14:23:14 +01:00
|
|
|
sha256 = "09l2lbcn3ar3scw6iylmdqi1lhpb408iqs6056d0wzx2l9nkmqis";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2019-02-21 20:57:23 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils gettext itstool libxml2 meson ninja
|
2019-09-02 17:44:27 +01:00
|
|
|
pkgconfig vala wrapGAppsHook python3 appstream-glib
|
|
|
|
gobject-introspection
|
2019-02-21 20:57:23 +00:00
|
|
|
];
|
|
|
|
|
2018-03-15 12:26:29 +00:00
|
|
|
buildInputs = [
|
2020-02-09 00:39:25 +00:00
|
|
|
adwaita-icon-theme enchant2 gcr gmime3 gnome-online-accounts
|
|
|
|
gsettings-desktop-schemas gtk3 isocodes json-glib libpeas
|
2019-09-02 17:44:27 +01:00
|
|
|
libgee libsecret sqlite webkitgtk glib-networking
|
2020-02-09 00:39:25 +00:00
|
|
|
libunwind folks gspell libytnef libhandy
|
2018-03-15 12:26:29 +00:00
|
|
|
];
|
|
|
|
|
2019-02-21 20:57:23 +00:00
|
|
|
checkInputs = [ xvfb_run dbus ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dcontractor=true" # install the contractor file (Pantheon specific)
|
2018-03-15 12:26:29 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-11-07 20:17:01 +00:00
|
|
|
patches = [
|
|
|
|
# Longer timeout for client test.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/gnome-team/geary/raw/04be1e058a2e65075dd8cf8843d469ee45a9e09a/debian/patches/Bump-client-test-timeout-to-300s.patch";
|
|
|
|
sha256 = "1zvnq8bgla160531bjdra8hcg15mp8r1j1n53m1xfgm0ssnj5knx";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-02-09 00:39:25 +00:00
|
|
|
# NOTE: Remove `build-auxyaml_to_json.py` when no longer needed, see:
|
|
|
|
# https://gitlab.gnome.org/GNOME/geary/commit/f7f72143e0f00ca5e0e6a798691805c53976ae31#0cc1139e3347f573ae1feee5b73dbc8a8a21fcfa
|
2019-02-21 20:57:23 +00:00
|
|
|
postPatch = ''
|
2019-09-02 17:44:27 +01:00
|
|
|
chmod +x build-aux/post_install.py build-aux/git_version.py
|
2020-02-09 00:39:25 +00:00
|
|
|
|
2019-09-02 17:44:27 +01:00
|
|
|
patchShebangs build-aux/post_install.py build-aux/git_version.py
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2020-02-09 00:39:25 +00:00
|
|
|
chmod +x build-aux/yaml_to_json.py
|
|
|
|
patchShebangs build-aux/yaml_to_json.py
|
|
|
|
|
2019-03-11 14:07:13 +00:00
|
|
|
chmod +x desktop/geary-attach
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
2020-02-09 00:39:25 +00:00
|
|
|
# FIXME: fix tests
|
|
|
|
doCheck = false;
|
2019-02-21 20:57:23 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
NO_AT_BRIDGE=1 \
|
|
|
|
XDG_DATA_DIRS=:$XDG_DATA_DIRS:${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${shared-mime-info}/share \
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test -v --no-stdsplit
|
|
|
|
'';
|
|
|
|
|
2019-03-11 14:07:13 +00:00
|
|
|
preFixup = ''
|
|
|
|
# Add geary to path for geary-attach
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "$out/bin")
|
|
|
|
'';
|
|
|
|
|
2018-03-22 19:36:09 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Geary";
|
2016-09-18 20:35:23 +01:00
|
|
|
description = "Mail client for GNOME 3";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2019-02-21 20:57:23 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|