about summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix
blob: ebe740a2167c2be9ff7cba41b109566366eda4c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ fetchurl, stdenv, pkgconfig, gnome3, python, dconf
, intltool, libsoup, libxml2, libsecret, icu, sqlite
, p11_kit, db, nspr, nss, libical, gperf, makeWrapper, valaSupport ? true
, vala, cmake, kerberos, openldap, webkitgtk, libaccounts-glib, json_glib }:

stdenv.mkDerivation rec {
  inherit (import ./src.nix fetchurl) name src;

  nativeBuildInputs = [ cmake pkgconfig intltool python gperf makeWrapper ];
  buildInputs = with gnome3;
    [ glib libsoup libxml2 gtk gnome_online_accounts
      (stdenv.lib.getLib dconf) gcr p11_kit libgweather libgdata
      icu sqlite gsettings_desktop_schemas kerberos openldap webkitgtk
      libaccounts-glib json_glib ]
    ++ stdenv.lib.optional valaSupport vala;

  propagatedBuildInputs = [ libsecret nss nspr libical db ];

  # uoa irrelevant for now
  cmakeFlags = [ "-DENABLE_UOA=OFF" ]
                   ++ stdenv.lib.optionals valaSupport [
                     "-DENABLE_VALA_BINDINGS=ON" "-DENABLE_INTROSPECTION=ON"
                     "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];

  enableParallelBuilding = true;

  preFixup = ''
    for f in $(find $out/libexec/ -type f -executable); do
      wrapProgram "$f" \
        --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
        --prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules"
    done
  '';

  meta = with stdenv.lib; {
    platforms = platforms.linux;
    maintainers = gnome3.maintainers;
  };

}