2018-03-15 12:26:29 +00:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, gtk3, vala_0_40, enchant
|
|
|
|
, wrapGAppsHook, gdk_pixbuf, cmake, ninja, desktop-file-utils
|
|
|
|
, libnotify, libcanberra-gtk3, libsecret, gmime, isocodes
|
|
|
|
, gobjectIntrospection, libpthreadstubs, sqlite
|
2018-02-25 02:23:58 +00:00
|
|
|
, gnome3, librsvg, gnome-doc-utils, webkitgtk }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
let
|
2018-03-22 19:36:09 +00:00
|
|
|
pname = "geary";
|
2018-04-24 12:10:58 +01:00
|
|
|
version = "0.12.2";
|
2016-09-18 20:35:23 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-22 19:36:09 +00:00
|
|
|
name = "${pname}-${version}";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-22 19:36:09 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-04-24 12:10:58 +01:00
|
|
|
sha256 = "09j5gh4zm49fcg2ycvy00dkkw69rfppqwc3lqdi4994hry4jivx9";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2018-03-15 12:26:29 +00:00
|
|
|
nativeBuildInputs = [ vala_0_40 intltool pkgconfig wrapGAppsHook cmake ninja desktop-file-utils gnome-doc-utils gobjectIntrospection ];
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 enchant webkitgtk libnotify libcanberra-gtk3 gnome3.libgee libsecret gmime sqlite
|
|
|
|
libpthreadstubs gnome3.gsettings-desktop-schemas gnome3.gcr isocodes
|
|
|
|
gdk_pixbuf librsvg gnome3.defaultIconTheme
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DISOCODES_DIRECTORY=${isocodes}/share/xml/iso-codes"
|
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-22 19:36:09 +00:00
|
|
|
# TODO: This is bad, upstream should fix their code.
|
|
|
|
PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR = "${webkitgtk.dev}/share/gir-1.0";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
preFixup = ''
|
2017-10-08 17:10:57 +01:00
|
|
|
# Add geary to path for geary-attach
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "$out/bin")
|
2016-09-18 20:35:23 +01:00
|
|
|
'';
|
|
|
|
|
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; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Geary;
|
|
|
|
description = "Mail client for GNOME 3";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|