29 , gobject-introspection
32 , gsettings-desktop-schemas
38 , supportMultimedia ? true # PDF multimedia
39 , withLibsecret ? true
42 stdenv.mkDerivation (finalAttrs: {
46 outputs = [ "out" "dev" "devdoc" ];
49 url = "mirror://gnome/sources/evince/${lib.versions.major finalAttrs.version}/evince-${finalAttrs.version}.tar.xz";
50 hash = "sha256-lFwgpvI4ObDVMycpFxRY6QaA2oJk6Zxvn0HCGcfu7nw=";
73 dbus # only needed to find the service directory
79 gsettings-desktop-schemas
90 texlive.bin.core # kpathsea for DVI support
91 ] ++ lib.optionals withLibsecret [
93 ] ++ lib.optionals supportMultimedia (with gst_all_1; [
105 ] ++ lib.optionals (!withLibsecret) [
107 ] ++ lib.optionals (!supportMultimedia) [
108 "-Dmultimedia=disabled"
112 gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
116 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
117 moveToOutput "share/doc" "$devdoc"
121 updateScript = gnome.updateScript {
122 packageName = "evince";
127 homepage = "https://apps.gnome.org/Evince/";
128 description = "GNOME's document viewer";
131 Evince is a document viewer for multiple document formats. It
132 currently supports PDF, PostScript, DjVu, TIFF and DVI. The goal
133 of Evince is to replace the multiple document viewers that exist
134 on the GNOME Desktop with a single simple application.
137 license = licenses.gpl2Plus;
138 platforms = platforms.unix;
139 mainProgram = "evince";
140 maintainers = teams.gnome.members ++ teams.pantheon.members;