Skip to content

Commit

Permalink
Merge pull request #66531 from jtojnar/eds-hardcode-gschemas
Browse files Browse the repository at this point in the history
gnome3.evolution-data-server: Hardcode more GSettings schemas
  • Loading branch information
jtojnar committed Aug 12, 2019
2 parents 194909a + 80cb879 commit 9af14d3
Show file tree
Hide file tree
Showing 2 changed files with 522 additions and 32 deletions.
14 changes: 7 additions & 7 deletions pkgs/desktops/gnome-3/core/evolution-data-server/default.nix
Expand Up @@ -2,7 +2,7 @@
, intltool, libsoup, libxml2, libsecret, icu, sqlite, tzdata, libcanberra-gtk3, gcr
, p11-kit, db, nspr, nss, libical, gperf, wrapGAppsHook, glib-networking, pcre
, vala, cmake, ninja, kerberos, openldap, webkitgtk, libaccounts-glib, json-glib
, glib, gtk3, gnome-online-accounts, libgweather, libgdata }:
, glib, gtk3, gnome-online-accounts, libgweather, libgdata, gsettings-desktop-schemas }:

stdenv.mkDerivation rec {
name = "evolution-data-server-${version}";
Expand All @@ -20,9 +20,14 @@ stdenv.mkDerivation rec {
src = ./fix-paths.patch;
inherit tzdata;
})
./hardcode-gsettings.patch
];

prePatch = ''
substitute ${./hardcode-gsettings.patch} hardcode-gsettings.patch --subst-var-by ESD_GSETTINGS_PATH $out/share/gsettings-schemas/${name}/glib-2.0/schemas \
--subst-var-by GDS_GSETTINGS_PATH "${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}/glib-2.0/schemas"
patches="$patches $PWD/hardcode-gsettings.patch"
'';

nativeBuildInputs = [
cmake ninja pkgconfig intltool python3 gperf wrapGAppsHook gobject-introspection vala
];
Expand All @@ -43,11 +48,6 @@ stdenv.mkDerivation rec {
"-DINCLUDE_INSTALL_DIR=${placeholder "dev"}/include"
];

postPatch = ''
substituteInPlace src/libedataserver/e-source-registry.c --subst-var-by ESD_GSETTINGS_PATH $out/share/gsettings-schemas/${name}/glib-2.0/schemas
'';


passthru = {
updateScript = gnome3.updateScript {
packageName = "evolution-data-server";
Expand Down

0 comments on commit 9af14d3

Please sign in to comment.