nixpkgs-suyu/pkgs/desktops/gnome-3/core/evince/default.nix

107 lines
2.1 KiB
Nix
Raw Normal View History

{ 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
, supportXPS ? false # Open XML Paper Specification via libgxps
}:
stdenv.mkDerivation rec {
pname = "evince";
version = "3.32.0";
src = fetchurl {
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
};
nativeBuildInputs = [
autoreconfHook
pkgconfig
gobject-introspection
gettext
itstool
yelp-tools
appstream
wrapGAppsHook
];
buildInputs = [
glib
gtk3
pango
atk
gdk_pixbuf
libxml2
2019-02-13 22:47:50 +01:00
gsettings-desktop-schemas
poppler
ghostscriptX
djvulibre
libspectre
libarchive
libsecret
librsvg
adwaita-icon-theme
gspell
2019-02-13 22:47:50 +01:00
] ++ stdenv.lib.optional supportXPS libgxps;
configureFlags = [
"--disable-nautilus" # Do not build nautilus plugin
2019-03-25 14:52:39 +01:00
"--enable-ps"
"--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";
preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Evince;
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;
maintainers = gnome3.maintainers ++ [ maintainers.vcunat ];
};
}