Files
nixpkgs/pkgs/desktops/mate/atril/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

100 lines
2.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
autoreconfHook,
gtk-doc,
gettext,
yelp-tools,
caja,
gtk3,
glib,
libxml2,
libarchive,
libsecret,
poppler,
mate-desktop,
itstool,
hicolor-icon-theme,
texlive,
wrapGAppsHook3,
enableEpub ? true,
webkitgtk_4_1,
enableDjvu ? true,
djvulibre,
enablePostScript ? true,
libspectre,
enableXps ? true,
libgxps,
enableImages ? false,
gitUpdater,
}:
stdenv.mkDerivation rec {
pname = "atril";
version = "1.28.2";
src = fetchFromGitHub {
owner = "mate-desktop";
repo = "atril";
tag = "v${version}";
fetchSubmodules = true;
hash = "sha256-NnWD3Gcxn8ZZKdHzg6iclLiSwj3sBvF+BwpNtcU+dSY=";
};
nativeBuildInputs = [
autoreconfHook
gtk-doc
itstool
pkg-config
gettext
wrapGAppsHook3
yelp-tools
];
buildInputs = [
caja
gtk3
glib
libarchive
libsecret
libxml2
poppler
mate-desktop
hicolor-icon-theme
texlive.bin.core # for synctex, used by the pdf back-end
]
++ lib.optionals enableDjvu [ djvulibre ]
++ lib.optionals enableEpub [ webkitgtk_4_1 ]
++ lib.optionals enablePostScript [ libspectre ]
++ lib.optionals enableXps [ libgxps ];
configureFlags =
[ ]
++ lib.optionals enableDjvu [ "--enable-djvu" ]
++ lib.optionals enableEpub [ "--enable-epub" ]
++ lib.optionals enablePostScript [ "--enable-ps" ]
++ lib.optionals enableXps [ "--enable-xps" ]
++ lib.optionals enableImages [ "--enable-pixbuf" ];
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ];
enableParallelBuilding = true;
passthru.updateScript = gitUpdater {
rev-prefix = "v";
odd-unstable = true;
};
meta = with lib; {
description = "Simple multi-page document viewer for the MATE desktop";
homepage = "https://mate-desktop.org";
license = licenses.gpl2Plus;
platforms = platforms.unix;
teams = [ teams.mate ];
};
}