nixpkgs/pkgs/desktops/mate/atril/default.nix

81 lines
1.8 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
2021-01-17 02:21:50 +00:00
, pkg-config
, 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 19:58:16 +00:00
, mateUpdateScript
}:
2021-01-15 13:21:58 +00:00
with lib;
2017-06-18 09:39:59 +00:00
stdenv.mkDerivation rec {
pname = "atril";
2021-04-02 21:56:02 +00:00
version = "1.24.1";
2017-06-18 09:39:59 +00: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-04-02 21:56:02 +00:00
sha256 = "06nyicj96dqcv035yqnzmm6pk3m35glxj0ny6lk1vwqkk2l750xl";
2017-06-18 09:39:59 +00:00
};
nativeBuildInputs = [
2021-01-17 02:21:50 +00:00
pkg-config
gettext
2017-06-18 09:39:59 +00:00
wrapGAppsHook
];
buildInputs = [
gtk3
glib
2017-06-18 09:39:59 +00:00
itstool
libsecret
libxml2
poppler
mate.caja
mate.mate-desktop
hicolor-icon-theme
2020-02-12 17:51:18 +00:00
texlive.bin.core # for synctex, used by the pdf back-end
]
++ 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" ];
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 19:58:16 +00:00
passthru.updateScript = mateUpdateScript { inherit pname version; };
meta = with lib; {
2017-06-18 09:39:59 +00: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 13:23:43 +00:00
license = licenses.gpl2Plus;
2020-02-12 18:01:21 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
2017-06-18 09:39:59 +00:00
};
}