diff --git a/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch b/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch index 2e1611cc942b..2032686395fb 100644 --- a/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch +++ b/pkgs/by-name/ev/evolution-ews/hardcode-gsettings.patch @@ -1,8 +1,17 @@ diff --git a/src/EWS/camel/camel-ews-utils.c b/src/EWS/camel/camel-ews-utils.c -index 44a20d6..90d5729 100644 +index 32817df..da65217 100644 --- a/src/EWS/camel/camel-ews-utils.c +++ b/src/EWS/camel/camel-ews-utils.c -@@ -1554,7 +1554,18 @@ ews_utils_save_category_changes (GHashTable *old_categories, /* gchar *guid ~> C +@@ -1550,7 +1550,7 @@ ews_utils_save_category_changes (GHashTable *old_categories, /* gchar *guid ~> C + gboolean changed = FALSE; + + /* cannot save, when evolution is not installed */ +- if (!e_ews_common_utils_gsettings_schema_exists ("org.gnome.evolution.mail")) ++ if (!true) + return FALSE; + + if (!old_categories || !new_categories) +@@ -1558,7 +1558,18 @@ ews_utils_save_category_changes (GHashTable *old_categories, /* gchar *guid ~> C evo_labels = g_ptr_array_new_full (5, g_free); @@ -23,10 +32,19 @@ index 44a20d6..90d5729 100644 for (ii = 0; strv && strv[ii]; ii++) { diff --git a/src/Microsoft365/camel/camel-m365-store.c b/src/Microsoft365/camel/camel-m365-store.c -index 3db3564..a233d4d 100644 +index 7374c36..7da2023 100644 --- a/src/Microsoft365/camel/camel-m365-store.c +++ b/src/Microsoft365/camel/camel-m365-store.c -@@ -309,7 +309,18 @@ m365_store_save_category_changes (GHashTable *old_categories, /* gchar *id ~> Ca +@@ -305,7 +305,7 @@ m365_store_save_category_changes (GHashTable *old_categories, /* gchar *id ~> Ca + gboolean changed = FALSE; + + /* cannot save, when evolution is not installed */ +- if (!e_ews_common_utils_gsettings_schema_exists ("org.gnome.evolution.mail")) ++ if (!true) + return FALSE; + + if (!old_categories || !new_categories) +@@ -313,7 +313,18 @@ m365_store_save_category_changes (GHashTable *old_categories, /* gchar *id ~> Ca evo_labels = g_ptr_array_new_full (5, g_free); @@ -47,51 +65,58 @@ index 3db3564..a233d4d 100644 for (ii = 0; strv && strv[ii]; ii++) { diff --git a/src/Microsoft365/common/e-m365-tz-utils.c b/src/Microsoft365/common/e-m365-tz-utils.c -index 7a1d7f4..3c0d5e1 100644 +index cec5417..2e744a0 100644 --- a/src/Microsoft365/common/e-m365-tz-utils.c +++ b/src/Microsoft365/common/e-m365-tz-utils.c -@@ -192,7 +192,18 @@ e_m365_tz_utils_get_user_timezone (void) - gchar *location; +@@ -192,10 +192,21 @@ e_m365_tz_utils_get_user_timezone (void) + gchar *location = NULL; ICalTimezone *zone = NULL; -- settings = g_settings_new ("org.gnome.evolution.calendar"); -+ { -+ g_autoptr(GSettingsSchemaSource) schema_source; -+ g_autoptr(GSettingsSchema) schema; -+ schema_source = g_settings_schema_source_new_from_directory("@evo@", -+ g_settings_schema_source_get_default(), -+ TRUE, -+ NULL); -+ schema = g_settings_schema_source_lookup(schema_source, -+ "org.gnome.evolution.calendar", -+ FALSE); -+ settings = g_settings_new_full(schema, NULL, NULL); -+ } +- if (e_ews_common_utils_gsettings_schema_exists ("org.gnome.evolution.calendar")) { ++ if (true) { + GSettings *settings; - if (g_settings_get_boolean (settings, "use-system-timezone")) - location = e_cal_util_get_system_timezone_location (); +- settings = g_settings_new ("org.gnome.evolution.calendar"); ++ { ++ g_autoptr(GSettingsSchemaSource) schema_source; ++ g_autoptr(GSettingsSchema) schema; ++ schema_source = g_settings_schema_source_new_from_directory("@evo@", ++ g_settings_schema_source_get_default(), ++ TRUE, ++ NULL); ++ schema = g_settings_schema_source_lookup(schema_source, ++ "org.gnome.evolution.calendar", ++ FALSE); ++ settings = g_settings_new_full(schema, NULL, NULL); ++ } + + if (g_settings_get_boolean (settings, "use-system-timezone")) + location = e_cal_util_get_system_timezone_location (); diff --git a/src/common/e-ews-common-utils.c b/src/common/e-ews-common-utils.c -index 5017d40..34547e3 100644 +index 3458c10..7d21784 100644 --- a/src/common/e-ews-common-utils.c +++ b/src/common/e-ews-common-utils.c -@@ -218,7 +218,19 @@ e_ews_common_utils_get_configured_icaltimezone (void) - if (schema) { - GSettings *settings; +@@ -208,10 +208,21 @@ e_ews_common_utils_get_configured_icaltimezone (void) + ICalTimezone *zone = NULL; + gchar *location = NULL; -- settings = g_settings_new ("org.gnome.evolution.calendar"); -+ { -+ g_autoptr(GSettingsSchemaSource) schema_source; -+ g_autoptr(GSettingsSchema) schema; -+ schema_source = g_settings_schema_source_new_from_directory("@evo@", -+ g_settings_schema_source_get_default(), -+ TRUE, -+ NULL); -+ schema = g_settings_schema_source_lookup(schema_source, -+ "org.gnome.evolution.calendar", -+ FALSE); -+ settings = g_settings_new_full(schema, NULL, -+ NULL); -+ } +- if (e_ews_common_utils_gsettings_schema_exists ("org.gnome.evolution.calendar")) { ++ if (true) { + GSettings *settings; - if (g_settings_get_boolean (settings, "use-system-timezone")) - location = e_cal_util_get_system_timezone_location (); +- settings = g_settings_new ("org.gnome.evolution.calendar"); ++ { ++ g_autoptr(GSettingsSchemaSource) schema_source; ++ g_autoptr(GSettingsSchema) schema; ++ schema_source = g_settings_schema_source_new_from_directory("@evo@", ++ g_settings_schema_source_get_default(), ++ TRUE, ++ NULL); ++ schema = g_settings_schema_source_lookup(schema_source, ++ "org.gnome.evolution.calendar", ++ FALSE); ++ settings = g_settings_new_full(schema, NULL, NULL); ++ } + + if (g_settings_get_boolean (settings, "use-system-timezone")) + location = e_cal_util_get_system_timezone_location (); diff --git a/pkgs/by-name/ev/evolution-ews/package.nix b/pkgs/by-name/ev/evolution-ews/package.nix index 4298118ad7c0..9b4a5d7d3e3c 100644 --- a/pkgs/by-name/ev/evolution-ews/package.nix +++ b/pkgs/by-name/ev/evolution-ews/package.nix @@ -23,11 +23,11 @@ stdenv.mkDerivation rec { pname = "evolution-ews"; - version = "3.54.3.0"; + version = "3.56.1"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - hash = "sha256-GscHzyWRqERRJXViGkkwx2GyF028XsscihhSYpRqFPY="; + hash = "sha256-DgC2qxV9j+r7T1HXchusP2IfI4f1WrS7PEPRN0KFrWs="; }; patches = [ @@ -71,6 +71,7 @@ stdenv.mkDerivation rec { "org.gnome.evolution.mail" = "evo"; "org.gnome.evolution.calendar" = "evo"; }; + schemaExistsFunction = "e_ews_common_utils_gsettings_schema_exists"; }; updateScript =