2017-10-08 17:10:57 +01:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, gtk3, vala_0_38, enchant
|
2018-02-25 02:23:58 +00:00
|
|
|
, wrapGAppsHook, gdk_pixbuf, cmake, desktop-file-utils
|
|
|
|
, libnotify, libcanberra-gtk3, libsecret, gmime
|
2016-09-18 20:35:23 +01:00
|
|
|
, 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
|
2017-10-08 17:10:57 +01:00
|
|
|
majorVersion = "0.12";
|
2016-09-18 20:35:23 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-14 06:28:14 +00:00
|
|
|
name = "geary-${majorVersion}.1";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/geary/${majorVersion}/${name}.tar.xz";
|
2018-02-14 06:28:14 +00:00
|
|
|
sha256 = "12hbpd5j3rb122nrsqmgsg31x82xl0ksm0nmsl614v1dd7crqnh6";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-02-25 02:23:58 +00: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
|
|
|
|
libpthreadstubs gnome3.gsettings-desktop-schemas gnome3.gcr
|
2016-09-18 20:35:23 +01:00
|
|
|
gdk_pixbuf librsvg gnome3.defaultIconTheme ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2017-10-08 17:10:57 +01:00
|
|
|
substituteInPlace src/CMakeLists.txt --replace '`''${PKG_CONFIG_EXECUTABLE} --variable=girdir gobject-introspection-1.0`' '${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
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|