2017-10-08 18:10:57 +02:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, gtk3, vala_0_38, enchant
|
|
|
|
, wrapGAppsHook, gdk_pixbuf, cmake, desktop_file_utils
|
2016-09-18 21:35:23 +02:00
|
|
|
, libnotify, libcanberra_gtk3, libsecret, gmime
|
|
|
|
, libpthreadstubs, sqlite
|
|
|
|
, gnome3, librsvg, gnome_doc_utils, webkitgtk }:
|
|
|
|
|
|
|
|
let
|
2017-10-08 18:10:57 +02:00
|
|
|
majorVersion = "0.12";
|
2016-09-18 21:35:23 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2017-10-08 18:10:57 +02:00
|
|
|
name = "geary-${majorVersion}.0";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/geary/${majorVersion}/${name}.tar.xz";
|
2017-10-08 18:10:57 +02:00
|
|
|
sha256 = "0ii4qaqfqx90kvqwg0g9jahygkir4mb03ja55fa55yyx6cq0kwff";
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
|
|
|
|
|
2017-10-08 18:10:57 +02:00
|
|
|
nativeBuildInputs = [ vala_0_38 intltool pkgconfig wrapGAppsHook cmake desktop_file_utils gnome_doc_utils ];
|
|
|
|
buildInputs = [ gtk3 enchant webkitgtk libnotify libcanberra_gtk3 gnome3.libgee libsecret gmime sqlite
|
2016-09-18 21:35:23 +02:00
|
|
|
libpthreadstubs gnome3.gsettings_desktop_schemas gnome3.gcr
|
|
|
|
gdk_pixbuf librsvg gnome3.defaultIconTheme ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2017-10-08 18:10:57 +02:00
|
|
|
substituteInPlace src/CMakeLists.txt --replace '`''${PKG_CONFIG_EXECUTABLE} --variable=girdir gobject-introspection-1.0`' '${webkitgtk.dev}/share/gir-1.0'
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2017-10-08 18:10:57 +02:00
|
|
|
# Add geary to path for geary-attach
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "$out/bin")
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|