2019-03-25 18:16:52 +01:00
|
|
|
{ fetchFromGitLab
|
2019-03-03 19:17:23 +01:00
|
|
|
, stdenv
|
2019-05-25 19:27:09 +02:00
|
|
|
, fetchpatch
|
2019-03-25 18:16:52 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-03-03 19:17:23 +01:00
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, appstream
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, pango
|
|
|
|
, atk
|
2019-05-22 13:03:39 +02:00
|
|
|
, gdk-pixbuf
|
2019-03-03 19:17:23 +01:00
|
|
|
, shared-mime-info
|
|
|
|
, itstool
|
|
|
|
, gnome3
|
|
|
|
, poppler
|
|
|
|
, ghostscriptX
|
|
|
|
, djvulibre
|
|
|
|
, libspectre
|
|
|
|
, libarchive
|
|
|
|
, libsecret
|
|
|
|
, wrapGAppsHook
|
|
|
|
, librsvg
|
|
|
|
, gobject-introspection
|
|
|
|
, yelp-tools
|
|
|
|
, gspell
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, gsettings-desktop-schemas
|
2019-03-25 18:16:52 +01:00
|
|
|
, gnome-desktop
|
|
|
|
, dbus
|
|
|
|
, python3
|
|
|
|
, texlive
|
|
|
|
, t1lib
|
|
|
|
, gst_all_1
|
|
|
|
, supportMultimedia ? true # PDF multimedia
|
2019-02-13 22:47:50 +01:00
|
|
|
, libgxps
|
2019-03-25 18:16:52 +01:00
|
|
|
, supportXPS ? true # Open XML Paper Specification via libgxps
|
2016-09-18 21:35:23 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-03 19:17:23 +01:00
|
|
|
pname = "evince";
|
|
|
|
version = "3.32.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
2019-03-25 18:16:52 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1klq8j70q8r8hyqv1wi6jcx8g76yh46bh8614y82zzggn4cx6y3r";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-05-25 19:27:09 +02:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2019-11459.patch";
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/evince/commit/3e38d5ad724a042eebadcba8c2d57b0f48b7a8c7.patch";
|
|
|
|
sha256 = "1ds6iwr2r9i86nwrly8cx7p1kbvf1gljjplcffa67znxqmwx4n74";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-25 18:16:52 +01:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2017-12-18 17:04:48 +01:00
|
|
|
nativeBuildInputs = [
|
2019-03-25 18:16:52 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2019-03-03 19:17:23 +01:00
|
|
|
pkgconfig
|
|
|
|
gobject-introspection
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
yelp-tools
|
|
|
|
appstream
|
|
|
|
wrapGAppsHook
|
2019-03-25 18:16:52 +01:00
|
|
|
python3
|
2017-12-18 17:04:48 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-03 19:17:23 +01:00
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
pango
|
|
|
|
atk
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf
|
2019-03-03 19:17:23 +01:00
|
|
|
libxml2
|
2019-02-13 22:47:50 +01:00
|
|
|
gsettings-desktop-schemas
|
2019-03-03 19:17:23 +01:00
|
|
|
poppler
|
|
|
|
ghostscriptX
|
|
|
|
djvulibre
|
|
|
|
libspectre
|
|
|
|
libarchive
|
|
|
|
libsecret
|
|
|
|
librsvg
|
|
|
|
adwaita-icon-theme
|
|
|
|
gspell
|
2019-03-25 18:16:52 +01:00
|
|
|
gnome-desktop
|
|
|
|
dbus # only needed to find the service directory
|
|
|
|
texlive.bin.core # kpathsea for DVI support
|
|
|
|
t1lib
|
|
|
|
] ++ stdenv.lib.optional supportXPS libgxps
|
|
|
|
++ stdenv.lib.optionals supportMultimedia (with gst_all_1; [
|
|
|
|
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]);
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2019-03-25 18:16:52 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dnautilus=false"
|
|
|
|
"-Dps=enabled"
|
|
|
|
"-Dgtk_doc=false"
|
2016-09-18 21:35:23 +02:00
|
|
|
];
|
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
preFixup = ''
|
2018-02-25 03:23:58 +01:00
|
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
2019-03-03 19:17:23 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
2017-07-15 10:06:46 +02:00
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-12-18 17:04:48 +01:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Evince;
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "GNOME's document viewer";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Evince is a document viewer for multiple document formats. It
|
|
|
|
currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
|
|
|
|
of Evince is to replace the multiple document viewers that exist
|
|
|
|
on the GNOME Desktop with a single simple application.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
2017-12-18 17:04:48 +01:00
|
|
|
maintainers = gnome3.maintainers ++ [ maintainers.vcunat ];
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|