3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/evince/default.nix

134 lines
2.7 KiB
Nix
Raw Normal View History

2019-10-01 05:37:57 +01:00
{ stdenv
, fetchurl
, meson
, ninja
, pkgconfig
, gettext
, libxml2
, appstream
, glib
, gtk3
, pango
, atk
2019-05-22 12:03:39 +01:00
, 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
, gnome-desktop
, dbus
, python3
, texlive
, t1lib
, gst_all_1
2019-10-01 05:37:57 +01:00
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, supportMultimedia ? true # PDF multimedia
2019-02-13 21:47:50 +00:00
, libgxps
, supportXPS ? true # Open XML Paper Specification via libgxps
}:
stdenv.mkDerivation rec {
pname = "evince";
2020-02-09 00:13:10 +00:00
version = "3.36.0";
2019-10-01 05:37:57 +01:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-02-09 00:13:10 +00:00
sha256 = "1a7v534sqbg7rlrvg9x1rffdf6p9n37blp3wix6anyfl6i99n7c5";
};
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
nativeBuildInputs = [
2019-10-01 05:37:57 +01:00
appstream
docbook-xsl-nons
docbook_xml_dtd_43
gettext
gobject-introspection
gtk-doc
itstool
meson
ninja
pkgconfig
python3
2019-10-01 05:37:57 +01:00
wrapGAppsHook
yelp-tools
];
buildInputs = [
2019-10-01 05:37:57 +01:00
adwaita-icon-theme
atk
2019-10-01 05:37:57 +01:00
dbus # only needed to find the service directory
djvulibre
2019-05-22 12:03:39 +01:00
gdk-pixbuf
ghostscriptX
2019-10-01 05:37:57 +01:00
glib
gnome-desktop
gsettings-desktop-schemas
gspell
gtk3
libarchive
librsvg
2019-10-01 05:37:57 +01:00
libsecret
libspectre
libxml2
pango
poppler
t1lib
2019-10-01 05:37:57 +01:00
texlive.bin.core # kpathsea for DVI support
] ++ stdenv.lib.optional supportXPS libgxps
++ stdenv.lib.optionals supportMultimedia (with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]);
mesonFlags = [
"-Dnautilus=false"
"-Dps=enabled"
];
2019-02-13 21:47:50 +00: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 ];
};
}