2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-10-08 04:39:10 +02:00
|
|
|
, fetchurl
|
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
|
2019-10-01 06:37:57 +02:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2019-03-25 18:16:52 +01:00
|
|
|
, 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";
|
2020-08-20 20:57:15 +02:00
|
|
|
version = "3.38.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
2019-10-01 06:37:57 +02:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2019-10-08 04:39:10 +02:00
|
|
|
src = fetchurl {
|
2021-01-15 14:21:58 +01:00
|
|
|
url = "mirror://gnome/sources/evince/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-08-20 20:57:15 +02:00
|
|
|
sha256 = "0j0ry0y9qi1mlm7dcjwrmrw45s1225ri8sv0s9vb8ibm85x8kpr6";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
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-10-01 06:37:57 +02:00
|
|
|
appstream
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
itstool
|
2019-03-25 18:16:52 +01:00
|
|
|
meson
|
|
|
|
ninja
|
2019-03-03 19:17:23 +01:00
|
|
|
pkgconfig
|
2019-03-25 18:16:52 +01:00
|
|
|
python3
|
2019-10-01 06:37:57 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
yelp-tools
|
2017-12-18 17:04:48 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-10-01 06:37:57 +02:00
|
|
|
adwaita-icon-theme
|
2019-03-03 19:17:23 +01:00
|
|
|
atk
|
2019-10-01 06:37:57 +02:00
|
|
|
dbus # only needed to find the service directory
|
|
|
|
djvulibre
|
2019-05-22 13:03:39 +02:00
|
|
|
gdk-pixbuf
|
2019-03-03 19:17:23 +01:00
|
|
|
ghostscriptX
|
2019-10-01 06:37:57 +02:00
|
|
|
glib
|
|
|
|
gnome-desktop
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gspell
|
|
|
|
gtk3
|
2019-03-03 19:17:23 +01:00
|
|
|
libarchive
|
|
|
|
librsvg
|
2019-10-01 06:37:57 +02:00
|
|
|
libsecret
|
|
|
|
libspectre
|
|
|
|
libxml2
|
|
|
|
pango
|
|
|
|
poppler
|
2019-03-25 18:16:52 +01:00
|
|
|
t1lib
|
2019-10-01 06:37:57 +02:00
|
|
|
texlive.bin.core # kpathsea for DVI support
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optional supportXPS libgxps
|
|
|
|
++ lib.optionals supportMultimedia (with gst_all_1; [
|
2019-03-25 18:16:52 +01:00
|
|
|
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"
|
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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02: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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
platforms = platforms.linux;
|
2020-07-03 12:53:27 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|