git.iko.soy/typeable/nixpkgs
on master help sign in
add california, a calendar application for gnome
commitd2ad04cd382e097eb72f4084deee9842aa362ba1 authorPascal Wittmann <mail@pascal-wittmann.de> dateTue 16 Jun 2015, 14:56 (11 years ago) parentea77ecc
3 files changed+80
pkgs/desktops/gnome-3/3.16/default.nix+2 pkgs/desktops/gnome-3/3.16/misc/california/0002-Build-with-evolution-data-server-3.13.90.patch+39 pkgs/desktops/gnome-3/3.16/misc/california/default.nix+39
pkgs/desktops/gnome-3/3.16/default.nix+2
@@ -279,6 +279,8 @@ let
279279
280280#### Misc -- other packages on http://ftp.gnome.org/pub/GNOME/sources/
281281
282+ california = callPackage ./misc/california { };
283+
282284 geary = callPackage ./misc/geary {
283285 webkitgtk = webkitgtk24x;
284286 };
pkgs/desktops/gnome-3/3.16/misc/california/0002-Build-with-evolution-data-server-3.13.90.patchnew file+39
@@ -0,0 +1,39 @@
1+diff --git a/configure.ac b/configure.ac
2+index 8a94642..1ca6426 100644
3+--- a/configure.ac
4++++ b/configure.ac
5+@@ -27,7 +27,7 @@ AC_SUBST(LDFLAGS)
6+ GLIB_REQUIRED=2.38.0
7+ GTK_REQUIRED=3.12.2
8+ GEE_REQUIRED=0.10.5
9+-ECAL_REQUIRED=3.8.5
10++ECAL_REQUIRED=3.13.90
11+ LIBSOUP_REQUIRED=2.44
12+ GDATA_REQUIRED=0.14.0
13+ GOA_REQUIRED=3.8.3
14+diff --git a/src/backing/eds/backing-eds-calendar-source.vala b/src/backing/eds/backing-eds-calendar-source.vala
15+index ee6a572..5009b5d 100644
16+--- a/src/backing/eds/backing-eds-calendar-source.vala
17++++ b/src/backing/eds/backing-eds-calendar-source.vala
18+@@ -256,7 +256,7 @@ internal class EdsCalendarSource : CalendarSource {
19+
20+ // Invoked by EdsStore prior to making it available outside of unit
21+ internal async void open_async(Cancellable? cancellable) throws Error {
22+- client = (E.CalClient) yield E.CalClient.connect(eds_source, E.CalClientSourceType.EVENTS,
23++ client = (E.CalClient) yield E.CalClient.connect(eds_source, E.CalClientSourceType.EVENTS, 1,
24+ cancellable);
25+
26+ client.bind_property("readonly", this, PROP_READONLY, BindingFlags.SYNC_CREATE);
27+diff --git a/vapi/libecal-1.2.vapi b/vapi/libecal-1.2.vapi
28+index 6ead3ec..46fd711 100644
29+--- a/vapi/libecal-1.2.vapi
30++++ b/vapi/libecal-1.2.vapi
31+@@ -23,7 +23,7 @@ namespace E {
32+ public bool check_save_schedules ();
33+ public static bool check_timezones (iCal.icalcomponent comp, GLib.List comps, GLib.Callback tzlookup, void* ecalclient, GLib.Cancellable cancellable) throws GLib.Error;
34+ [CCode (finish_name = "e_cal_client_connect_finish")]
35+- public static async unowned E.Client connect (E.Source source, E.CalClientSourceType source_type, GLib.Cancellable cancellable) throws GLib.Error;
36++ public static async unowned E.Client connect (E.Source source, E.CalClientSourceType source_type, uint32 wait_for_connected_seconds, GLib.Cancellable cancellable) throws GLib.Error;
37+ public static unowned E.Client connect_sync (E.Source source, E.CalClientSourceType source_type, GLib.Cancellable cancellable) throws GLib.Error;
38+ [CCode (finish_name = "e_cal_client_create_object_finish")]
39+ public async void create_object (iCal.icalcomponent icalcomp, GLib.Cancellable? cancellable, out string out_uid) throws GLib.Error;
pkgs/desktops/gnome-3/3.16/misc/california/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, intltool, pkgconfig, gtk3, vala, makeWrapper
2+, gnome3, glib, libsoup, libgdata, sqlite, itstool, xdg_utils }:
3+
4+let
5+ majorVersion = "0.4";
6+in
7+stdenv.mkDerivation rec {
8+ name = "california-${majorVersion}.0";
9+
10+ src = fetchurl {
11+ url = "mirror://gnome/sources/california/${majorVersion}/${name}.tar.xz";
12+ sha256 = "1dky2kllv469k8966ilnf4xrr7z35pq8mdvs7kwziy59cdikapxj";
13+ };
14+
15+ propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
16+
17+ buildInputs = [ makeWrapper intltool pkgconfig vala glib gtk3 gnome3.libgee
18+ libsoup libgdata gnome3.gnome_online_accounts gnome3.evolution_data_server
19+ sqlite itstool xdg_utils gnome3.gsettings_desktop_schemas ];
20+
21+ preFixup = ''
22+ wrapProgram "$out/bin/california" \
23+ --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
24+ --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:${gnome3.defaultIconTheme}/share:${gnome3.gnome_themes_standard}/share:$out/share:$GSETTINGS_SCHEMAS_PATH:${gnome3.gsettings_desktop_schemas}/share"
25+ '';
26+
27+ enableParallelBuilding = true;
28+
29+ # Apply fedoras patch to build with evolution-data-server >3.13
30+ patches = [ ./0002-Build-with-evolution-data-server-3.13.90.patch ];
31+
32+ meta = with stdenv.lib; {
33+ homepage = https://wiki.gnome.org/Apps/California;
34+ description = "Calendar application for GNOME 3";
35+ maintainers = with maintainers; [ pSub ];
36+ license = licenses.lgpl21;
37+ platforms = platforms.linux;
38+ };
39+}