mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
81 lines
1.8 KiB
Nix
81 lines
1.8 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, 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
|
|
, mateUpdateScript
|
|
}:
|
|
|
|
with lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "atril";
|
|
version = "1.24.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "06nyicj96dqcv035yqnzmm6pk3m35glxj0ny6lk1vwqkk2l750xl";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk3
|
|
glib
|
|
itstool
|
|
libsecret
|
|
libxml2
|
|
poppler
|
|
mate.caja
|
|
mate.mate-desktop
|
|
hicolor-icon-theme
|
|
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";
|
|
|
|
makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
meta = with lib; {
|
|
description = "A simple multi-page document viewer for the MATE desktop";
|
|
homepage = "https://mate-desktop.org";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|