gnome3.evince: Add XPS file support

XPS support is optional via supportXPS argument and turned off by
default.
This commit is contained in:
Michael Raitza 2016-02-19 20:15:19 +01:00
parent 6d6a7881ef
commit 58cbe7d068

View File

@ -1,8 +1,9 @@
{ fetchurl, stdenv, pkgconfig, intltool, perl, perlXMLParser, libxml2 { fetchurl, stdenv, pkgconfig, intltool, perl, perlXMLParser, libxml2
, glib, gtk3, pango, atk, gdk_pixbuf, shared_mime_info, itstool, gnome3 , glib, gtk3, pango, atk, gdk_pixbuf, shared_mime_info, itstool, gnome3
, poppler, ghostscriptX, djvulibre, libspectre, libsecret , makeWrapper , poppler, ghostscriptX, djvulibre, libspectre, libsecret , makeWrapper
, librsvg, recentListSize ? null # 5 is not enough, allow passing a different number , librsvg, gobjectIntrospection
, gobjectIntrospection , recentListSize ? null # 5 is not enough, allow passing a different number
, supportXPS ? false # Open XML Paper Specification via libgxps
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -15,11 +16,12 @@ stdenv.mkDerivation rec {
gnome3.libgnome_keyring gnome3.gsettings_desktop_schemas gnome3.libgnome_keyring gnome3.gsettings_desktop_schemas
poppler ghostscriptX djvulibre libspectre poppler ghostscriptX djvulibre libspectre
makeWrapper libsecret librsvg gnome3.adwaita-icon-theme makeWrapper libsecret librsvg gnome3.adwaita-icon-theme
]; ] ++ stdenv.lib.optional supportXPS gnome3.libgxps;
configureFlags = [ configureFlags = [
"--disable-nautilus" # Do not use nautilus "--disable-nautilus" # Do not use nautilus
"--enable-introspection" "--enable-introspection"
(if supportXPS then "--enable-xps" else "--disable-xps")
]; ];
NIX_CFLAGS_COMPILE = "-I${gnome3.glib}/include/gio-unix-2.0"; NIX_CFLAGS_COMPILE = "-I${gnome3.glib}/include/gio-unix-2.0";