nixpkgs/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix

65 lines
2.2 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, substituteAll, pkgconfig, gnome3, python3, gobject-introspection
2018-12-25 22:41:02 +00:00
, intltool, libsoup, libxml2, libsecret, icu, sqlite, tzdata, libcanberra-gtk3, gcr
, p11-kit, db, nspr, nss, libical, gperf, wrapGAppsHook, glib-networking, pcre
2019-02-13 21:47:50 +00:00
, vala, cmake, ninja, kerberos, openldap, webkitgtk, libaccounts-glib, json-glib
, glib, gtk3, gnome-online-accounts, libgweather, libgdata, gsettings-desktop-schemas }:
stdenv.mkDerivation rec {
pname = "evolution-data-server";
version = "3.34.0";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/evolution-data-server/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1kw6wkrr33bxv95z06dr31qvmp7c7x88xkw27k3fq0df4jlb17gv";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
inherit tzdata;
})
];
prePatch = ''
substitute ${./hardcode-gsettings.patch} hardcode-gsettings.patch --subst-var-by ESD_GSETTINGS_PATH ${glib.makeSchemaPath "$out" "${pname}-${version}"} \
--subst-var-by GDS_GSETTINGS_PATH ${glib.getSchemaPath gsettings-desktop-schemas}
patches="$patches $PWD/hardcode-gsettings.patch"
'';
2017-12-18 23:00:04 +00:00
nativeBuildInputs = [
cmake ninja pkgconfig intltool python3 gperf wrapGAppsHook gobject-introspection vala
];
2019-02-13 21:47:50 +00:00
buildInputs = [
glib libsoup libxml2 gtk3 gnome-online-accounts
gcr p11-kit libgweather libgdata libaccounts-glib json-glib
icu sqlite kerberos openldap webkitgtk glib-networking
libcanberra-gtk3 pcre
2017-12-18 23:00:04 +00:00
];
propagatedBuildInputs = [ libsecret nss nspr libical db libsoup ];
2017-12-18 23:00:04 +00:00
cmakeFlags = [
"-DENABLE_UOA=OFF"
"-DENABLE_VALA_BINDINGS=ON"
"-DENABLE_INTROSPECTION=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include"
2017-12-18 23:00:04 +00:00
];
passthru = {
updateScript = gnome3.updateScript {
packageName = "evolution-data-server";
};
};
meta = with stdenv.lib; {
description = "Unified backend for programs that work with contacts, tasks, and calendar information";
homepage = https://wiki.gnome.org/Apps/Evolution;
2017-12-18 23:00:04 +00:00
license = licenses.lgpl2;
maintainers = gnome3.maintainers;
2017-12-18 23:00:04 +00:00
platforms = platforms.linux;
};
}