forked from mirrors/nixpkgs
Merge pull request #54268 from hedning/gnome-fixes
Gnome fixes (gnome-documents and eog)
This commit is contained in:
commit
4fe0bd0f29
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, meson, ninja, gettext, fetchurl, evince, gjs
|
||||
{ stdenv, meson, ninja, gettext, fetchurl, fetchpatch, evince, gjs
|
||||
, pkgconfig, gtk3, glib, tracker, tracker-miners
|
||||
, itstool, libxslt, webkitgtk, libgdata
|
||||
, gnome-desktop, libzapojit, libgepub
|
||||
|
@ -31,6 +31,14 @@ stdenv.mkDerivation rec {
|
|||
gnome-desktop libzapojit libgepub
|
||||
];
|
||||
|
||||
patches = [
|
||||
# fix RPATH to libgd
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/gnome-documents/commit/d18a92e0a940073ac766f609937539e4fc6cdbb7.patch";
|
||||
sha256 = "0s3mk8vrl1gzk93yvgqbnz44i27qw1d9yvvmnck3fv23phrxkzk9";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson_post_install.py # patchShebangs requires executable file
|
||||
patchShebangs meson_post_install.py
|
||||
|
|
|
@ -25,6 +25,15 @@ in stdenv.mkDerivation rec {
|
|||
patchShebangs meson_post_install.py
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
# Thumbnailers
|
||||
--prefix XDG_DATA_DIRS : "${gdk_pixbuf}/share"
|
||||
--prefix XDG_DATA_DIRS : "${librsvg}/share"
|
||||
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"
|
||||
)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
|
|
Loading…
Reference in a new issue