From f07d90d5c5f62955828a8bf0e40fa1e27e3b4056 Mon Sep 17 00:00:00 2001
From: Will Dietz <w@wdtz.org>
Date: Wed, 3 Jan 2018 14:17:33 -0600
Subject: [PATCH] mendeley: fix gconf errors by propgating to user env

gconf fix is based on same done w/guake in #16670.
See also:
https://github.com/NixOS/nixpkgs/issues/24709#issuecomment-292565654
---
 pkgs/applications/office/mendeley/default.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkgs/applications/office/mendeley/default.nix b/pkgs/applications/office/mendeley/default.nix
index b78eaa9fd3f3..12ad8431cac3 100644
--- a/pkgs/applications/office/mendeley/default.nix
+++ b/pkgs/applications/office/mendeley/default.nix
@@ -96,6 +96,8 @@ stdenv.mkDerivation {
   nativeBuildInputs = [ makeWrapper ];
   buildInputs = [ dpkg which ] ++ deps;
 
+  propagatedUserEnvPkgs = [ gconf ];
+
   unpackPhase = "true";
 
   installPhase = ''