2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-07-25 22:28:37 +01:00
|
|
|
, fetchurl
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-07-25 22:28:37 +01:00
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, libxml2
|
|
|
|
, libsecret
|
|
|
|
, poppler
|
|
|
|
, itstool
|
|
|
|
, hicolor-icon-theme
|
|
|
|
, texlive
|
|
|
|
, mate
|
|
|
|
, wrapGAppsHook
|
|
|
|
, enableEpub ? true, webkitgtk
|
|
|
|
, enableDjvu ? true, djvulibre
|
|
|
|
, enablePostScript ? true, libspectre
|
|
|
|
, enableXps ? true, libgxps
|
|
|
|
, enableImages ? false
|
2021-04-02 20:58:16 +01:00
|
|
|
, mateUpdateScript
|
2020-07-25 22:28:37 +01:00
|
|
|
}:
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2017-06-18 10:39:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "atril";
|
2021-08-06 20:08:17 +01:00
|
|
|
version = "1.26.0";
|
2017-06-18 10:39:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 13:21:58 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-08-06 20:08:17 +01:00
|
|
|
sha256 = "0pz44k3axhjhhwfrfvnwvxak1dmjkwqs63rhrbcaagyymrp7cpki";
|
2017-06-18 10:39:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-02-14 14:09:49 +00:00
|
|
|
gettext
|
2017-06-18 10:39:59 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
2019-01-15 23:36:19 +00:00
|
|
|
glib
|
2017-06-18 10:39:59 +01:00
|
|
|
itstool
|
|
|
|
libsecret
|
|
|
|
libxml2
|
|
|
|
poppler
|
2018-02-13 22:44:07 +00:00
|
|
|
mate.caja
|
|
|
|
mate.mate-desktop
|
2018-02-25 02:23:58 +00:00
|
|
|
hicolor-icon-theme
|
2020-02-12 17:51:18 +00:00
|
|
|
texlive.bin.core # for synctex, used by the pdf back-end
|
2020-07-25 22:28:37 +01:00
|
|
|
]
|
|
|
|
++ optionals enableDjvu [ djvulibre ]
|
|
|
|
++ optionals enableEpub [ webkitgtk ]
|
|
|
|
++ optionals enablePostScript [ libspectre ]
|
|
|
|
++ optionals enableXps [ libgxps ]
|
|
|
|
;
|
|
|
|
|
|
|
|
configureFlags = [ ]
|
|
|
|
++ optionals (enableDjvu) [ "--enable-djvu" ]
|
|
|
|
++ optionals (enableEpub) [ "--enable-epub" ]
|
|
|
|
++ optionals (enablePostScript) [ "--enable-ps" ]
|
|
|
|
++ optionals (enableXps) [ "--enable-xps" ]
|
|
|
|
++ optionals (enableImages) [ "--enable-pixbuf" ];
|
2019-01-15 23:36:19 +00:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
|
|
|
|
2018-01-08 18:00:54 +00:00
|
|
|
makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ];
|
|
|
|
|
2020-02-14 21:52:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-04-02 20:58:16 +01:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-18 10:39:59 +01:00
|
|
|
description = "A simple multi-page document viewer for the MATE desktop";
|
2020-02-12 17:51:18 +00:00
|
|
|
homepage = "https://mate-desktop.org";
|
2021-04-22 14:23:43 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-02-12 18:01:21 +00:00
|
|
|
platforms = platforms.unix;
|
2021-09-21 20:45:29 +01:00
|
|
|
maintainers = teams.mate.members;
|
2017-06-18 10:39:59 +01:00
|
|
|
};
|
|
|
|
}
|