2019-03-03 19:17:23 +01:00
|
|
|
{ fetchurl
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, pkgconfig
|
|
|
|
, gettext
|
|
|
|
, libxml2
|
|
|
|
, appstream
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, pango
|
|
|
|
, atk
|
|
|
|
, gdk_pixbuf
|
|
|
|
, 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-02-13 22:47:50 +01:00
|
|
|
, libgxps
|
2019-03-03 19:17:23 +01:00
|
|
|
, supportXPS ? false # 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
|
|
|
|
|
|
|
src = fetchurl {
|
2019-03-03 19:17:23 +01:00
|
|
|
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-18 17:04:48 +01:00
|
|
|
nativeBuildInputs = [
|
2019-03-03 19:17:23 +01:00
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
gobject-introspection
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
yelp-tools
|
|
|
|
appstream
|
|
|
|
wrapGAppsHook
|
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
|
|
|
|
gdk_pixbuf
|
|
|
|
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-02-13 22:47:50 +01:00
|
|
|
] ++ stdenv.lib.optional supportXPS libgxps;
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
2017-12-18 17:04:48 +01:00
|
|
|
"--disable-nautilus" # Do not build nautilus plugin
|
2019-03-25 14:52:39 +01:00
|
|
|
"--enable-ps"
|
2016-09-18 21:35:23 +02:00
|
|
|
"--enable-introspection"
|
|
|
|
(if supportXPS then "--enable-xps" else "--disable-xps")
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|