28 , gobject-introspection
31 , gsettings-desktop-schemas
37 , supportMultimedia ? true # PDF multimedia
39 , supportXPS ? true # Open XML Paper Specification via libgxps
40 , withLibsecret ? true
43 stdenv.mkDerivation (finalAttrs: {
47 outputs = [ "out" "dev" "devdoc" ];
50 url = "mirror://gnome/sources/evince/${lib.versions.major finalAttrs.version}/evince-${finalAttrs.version}.tar.xz";
51 hash = "sha256-vA0dQbnX/8di6Z0qv6+sv3RRgvCzHYbbXuyMZ/XzAGs=";
74 dbus # only needed to find the service directory
80 gsettings-desktop-schemas
90 texlive.bin.core # kpathsea for DVI support
91 ] ++ lib.optionals withLibsecret [
93 ] ++ lib.optionals supportXPS [
95 ] ++ lib.optionals supportMultimedia (with gst_all_1; [
107 ] ++ lib.optionals (!withLibsecret) [
109 ] ++ lib.optionals (!supportMultimedia) [
110 "-Dmultimedia=disabled"
114 gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
118 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
119 moveToOutput "share/doc" "$devdoc"
123 updateScript = gnome.updateScript {
124 packageName = "evince";
129 homepage = "https://apps.gnome.org/Evince/";
130 description = "GNOME's document viewer";
133 Evince is a document viewer for multiple document formats. It
134 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
135 of Evince is to replace the multiple document viewers that exist
136 on the GNOME Desktop with a single simple application.
139 license = licenses.gpl2Plus;
140 platforms = platforms.unix;
141 mainProgram = "evince";
142 maintainers = teams.gnome.members ++ teams.pantheon.members;