git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #93851 from dawidsowa/atril

mate.atril: add support for more filetypes

commit89cb711b807f9c5dc71a8a6d4b023342e83ae8b9 authorJosé Romildo Malaquias <malaquias@gmail.com> dateSun 26 Jul 2020, 23:42 (6 years ago) parente12aa01de98a63
1 file changed+35−2
pkgs/desktops/mate/atril/default.nix+35−2
pkgs/desktops/mate/atril/default.nix+35−2
@@ -1,4 +1,25 @@
1−{ stdenv, fetchurl, pkgconfig, gettext, gtk3, glib, libxml2, libsecret, poppler, itstool, hicolor-icon-theme, texlive, mate, wrapGAppsHook }:
1+{ stdenv
2+, fetchurl
3+, pkgconfig
4+, gettext
5+, gtk3
6+, glib
7+, libxml2
8+, libsecret
9+, poppler
10+, itstool
11+, hicolor-icon-theme
12+, texlive
13+, mate
14+, wrapGAppsHook
15+, enableEpub ? true, webkitgtk
16+, enableDjvu ? true, djvulibre
17+, enablePostScript ? true, libspectre
18+, enableXps ? true, libgxps
19+, enableImages ? false
20+}:
21+
22+with stdenv.lib;
223
324stdenv.mkDerivation rec {
425 pname = "atril";
@@ -26,7 +47,19 @@ stdenv.mkDerivation rec {
2647 mate.mate-desktop
2748 hicolor-icon-theme
2849 texlive.bin.core # for synctex, used by the pdf back-end
29− ];
50+ ]
51+ ++ optionals enableDjvu [ djvulibre ]
52+ ++ optionals enableEpub [ webkitgtk ]
53+ ++ optionals enablePostScript [ libspectre ]
54+ ++ optionals enableXps [ libgxps ]
55+ ;
56+
57+ configureFlags = [ ]
58+ ++ optionals (enableDjvu) [ "--enable-djvu" ]
59+ ++ optionals (enableEpub) [ "--enable-epub" ]
60+ ++ optionals (enablePostScript) [ "--enable-ps" ]
61+ ++ optionals (enableXps) [ "--enable-xps" ]
62+ ++ optionals (enableImages) [ "--enable-pixbuf" ];
3063
3164 NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
3265