nixpkgs/pkgs/desktops/gnome-3/misc/geary/default.nix

69 lines
2.3 KiB
Nix
Raw Normal View History

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
2018-12-25 22:41:02 +00:00
, gobject-introspection, libpthreadstubs, sqlite, gcr
, gnome3, librsvg, gnome-doc-utils, webkitgtk, fetchpatch }:
let
2018-03-22 19:36:09 +00:00
pname = "geary";
2018-09-01 19:58:44 +01:00
version = "0.12.4";
in
stdenv.mkDerivation rec {
2018-03-22 19:36:09 +00:00
name = "${pname}-${version}";
src = fetchurl {
2018-03-22 19:36:09 +00:00
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2018-09-01 19:58:44 +01:00
sha256 = "01ykhkjfkprvh9kp4rzrl6xs2pqibiw44ckvqsn5cs3xy2rlq8mm";
};
patches = [
# Fix build with webkitgtk-2.22
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/geary/commit/5d0f711426d76f878cf9b71f7e8f785199c7cde1.patch;
sha256 = "1yifng5lfsc6wp7irmi8gjdcfig1cr0chf7rdv3asrk567nmwrsi";
})
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/geary/commit/0d966950a2cba888873cd3a7f4f42bb7a017dc6d.patch;
sha256 = "1y6v4fnik4w3paj9nl0yqs54998sx1zr9w3940d579p6dsa8f3fg";
})
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/geary/commit/e091f24b00ec421e1aadd5e360d1550e658ad5ef.patch;
sha256 = "0d5hc4h9c1hnn2sk18nkpmzdvwm3h746n2zj8n22ax9rj6lxl38l";
})
];
nativeBuildInputs = [ vala_0_40 intltool pkgconfig wrapGAppsHook cmake ninja desktop-file-utils gnome-doc-utils gobject-introspection ];
2018-03-15 12:26:29 +00:00
buildInputs = [
gtk3 enchant webkitgtk libnotify libcanberra-gtk3 gnome3.libgee libsecret gmime sqlite
2018-12-25 22:41:02 +00:00
libpthreadstubs gnome3.gsettings-desktop-schemas gcr isocodes
2018-03-15 12:26:29 +00:00
gdk_pixbuf librsvg gnome3.defaultIconTheme
];
cmakeFlags = [
"-DISOCODES_DIRECTORY=${isocodes}/share/xml/iso-codes"
];
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";
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}";
};
};
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;
};
}