mousepad: fix the Using the 'memory' GSettings backend issue.

Close #10867.
It means that settings couldn't be saved. The issue appeared
since upgrade to nixos 15.09 and fall as part of #4415.

Tested on nixos.
 -  No longer has a stderr when running the application.
 -  Settings are effectively saved.
This commit is contained in:
Raymond Gauthier 2015-11-07 12:01:36 -05:00 committed by Vladimír Čunát
parent 310b7e24d2
commit 34eb56e16b
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util
, gtk, gtksourceview, dbus, dbus_glib, makeWrapper }:
, gtk, gtksourceview, dbus, dbus_glib, makeWrapper
, dconf }:
stdenv.mkDerivation rec {
p_name = "mousepad";
@ -15,11 +16,13 @@ stdenv.mkDerivation rec {
buildInputs =
[ pkgconfig intltool libxfce4util
gtk gtksourceview dbus dbus_glib makeWrapper
dconf
];
preFixup = ''
wrapProgram "$out/bin/mousepad" \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:${gtksourceview}/share"
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:${gtksourceview}/share" \
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules"
'';
meta = {

View File

@ -6,6 +6,7 @@ callPackage = newScope (deps // xfce_self);
deps = { # xfce-global dependency overrides should be here
inherit (pkgs.gnome) libglade libwnck vte gtksourceview;
inherit (pkgs.gnome3) dconf;
inherit (pkgs.perlPackages) URI;
};