evince: meson, enable DVI, XPS, and PDF multimedia support
This commit is contained in:
parent
9d156a1a32
commit
e0a90a5fc1
@ -1,6 +1,7 @@
|
|||||||
{ fetchurl
|
{ fetchFromGitLab
|
||||||
, stdenv
|
, stdenv
|
||||||
, autoreconfHook
|
, meson
|
||||||
|
, ninja
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, gettext
|
, gettext
|
||||||
, libxml2
|
, libxml2
|
||||||
@ -26,21 +27,37 @@
|
|||||||
, gspell
|
, gspell
|
||||||
, adwaita-icon-theme
|
, adwaita-icon-theme
|
||||||
, gsettings-desktop-schemas
|
, gsettings-desktop-schemas
|
||||||
|
, gnome-desktop
|
||||||
|
, dbus
|
||||||
|
, python3
|
||||||
|
, texlive
|
||||||
|
, t1lib
|
||||||
|
, gst_all_1
|
||||||
|
, supportMultimedia ? true # PDF multimedia
|
||||||
, libgxps
|
, libgxps
|
||||||
, supportXPS ? false # Open XML Paper Specification via libgxps
|
, supportXPS ? true # Open XML Paper Specification via libgxps
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "evince";
|
pname = "evince";
|
||||||
version = "3.32.0";
|
version = "3.32.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitLab {
|
||||||
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
domain = "gitlab.gnome.org";
|
||||||
sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
|
owner = "GNOME";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1klq8j70q8r8hyqv1wi6jcx8g76yh46bh8614y82zzggn4cx6y3r";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
chmod +x meson_post_install.py
|
||||||
|
patchShebangs meson_post_install.py
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoreconfHook
|
meson
|
||||||
|
ninja
|
||||||
pkgconfig
|
pkgconfig
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
gettext
|
gettext
|
||||||
@ -48,6 +65,7 @@ stdenv.mkDerivation rec {
|
|||||||
yelp-tools
|
yelp-tools
|
||||||
appstream
|
appstream
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -67,13 +85,19 @@ stdenv.mkDerivation rec {
|
|||||||
librsvg
|
librsvg
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
gspell
|
gspell
|
||||||
] ++ stdenv.lib.optional supportXPS libgxps;
|
gnome-desktop
|
||||||
|
dbus # only needed to find the service directory
|
||||||
|
texlive.bin.core # kpathsea for DVI support
|
||||||
|
t1lib
|
||||||
|
] ++ 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 ]);
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
"--disable-nautilus" # Do not build nautilus plugin
|
"-Dauto_features=enabled"
|
||||||
"--enable-ps"
|
"-Dnautilus=false"
|
||||||
"--enable-introspection"
|
"-Dps=enabled"
|
||||||
(if supportXPS then "--enable-xps" else "--disable-xps")
|
"-Dgtk_doc=false"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user