From c53a762b7e6c79393b80d912320cefa4181549df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Sat, 26 Mar 2016 11:02:33 -0300 Subject: [PATCH] evince: add shared_mime_info dir to XDG_DATA_DIRS env variable --- pkgs/desktops/gnome-3/3.18/core/evince/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/desktops/gnome-3/3.18/core/evince/default.nix b/pkgs/desktops/gnome-3/3.18/core/evince/default.nix index 3229d10104da..d0857a1d32ad 100644 --- a/pkgs/desktops/gnome-3/3.18/core/evince/default.nix +++ b/pkgs/desktops/gnome-3/3.18/core/evince/default.nix @@ -39,6 +39,10 @@ stdenv.mkDerivation rec { sed -i 's/\(if (++n_items == \)5\(.*\)/\1${builtins.toString recentListSize}\2/' shell/ev-window.c ''; + preFixup = '' + gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared_mime_info}/share") + ''; + doCheck = false; # would need pythonPackages.dogTail, which is missing meta = with stdenv.lib; {