1 { lib, stdenv, fetchFromGitLab, meson, ninja, wrapGAppsHook, pkg-config, gitUpdater
2 , appstream-glib, json-glib, desktop-file-utils, python3
3 , gtk, girara, gettext, libxml2, check
4 , sqlite, glib, texlive, libintl, libseccomp
9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitLab {
14 domain = "git.pwmt.org";
17 rev = finalAttrs.version;
18 hash = "sha256-mHEYqgBB55p8nykFtvYtP5bWexp/IqFbeLs7gZmXCeE=";
21 outputs = [ "bin" "man" "dev" "out" ];
24 # https://github.com/pwmt/zathura/blob/master/meson_options.txt
27 "-Dconvert-icon=enabled"
30 # Make sure tests are enabled for doCheck
31 # (lib.mesonEnable "tests" finalAttrs.finalPackage.doCheck)
32 (lib.mesonEnable "seccomp" stdenv.hostPlatform.isLinux)
36 meson ninja pkg-config desktop-file-utils python3.pythonOnBuildForHost.pkgs.sphinx
37 gettext wrapGAppsHook libxml2 appstream-glib
41 gtk girara libintl sqlite glib file librsvg check json-glib
43 ] ++ lib.optional stdenv.isLinux libseccomp
44 ++ lib.optional stdenv.isDarwin gtk-mac-integration;
46 doCheck = !stdenv.isDarwin;
48 passthru.updateScript = gitUpdater { };
51 homepage = "https://git.pwmt.org/pwmt/zathura";
52 description = "A core component for zathura PDF viewer";
53 license = licenses.zlib;
54 platforms = platforms.unix;
55 maintainers = with maintainers; [ globin ];