nixpkgs/pkgs/applications/misc/zathura/core/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

96 lines
1.7 KiB
Nix
Raw Normal View History

2024-05-26 18:02:58 +00:00
{
lib,
stdenv,
2024-05-26 17:49:35 +00:00
fetchFromGitHub,
2024-05-26 18:02:58 +00:00
meson,
ninja,
wrapGAppsHook3,
pkg-config,
gitUpdater,
appstream-glib,
json-glib,
desktop-file-utils,
python3,
gtk,
girara,
gettext,
libxml2,
check,
sqlite,
glib,
texlive,
libintl,
libseccomp,
file,
librsvg,
gtk-mac-integration,
2017-02-15 14:01:40 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2020-02-26 14:45:18 +00:00
pname = "zathura";
2024-05-26 17:49:35 +00:00
version = "0.5.6";
2024-05-26 17:49:35 +00:00
src = fetchFromGitHub {
owner = "pwmt";
repo = "zathura";
rev = finalAttrs.version;
2024-05-26 17:49:35 +00:00
hash = "sha256-lTEBIZ3lkzjJ+L1qecrcL8iseo8AvSIo3Wh65/ikwac=";
};
2024-05-26 18:02:58 +00:00
outputs = [
"bin"
"man"
"dev"
"out"
];
# Flag list:
# https://github.com/pwmt/zathura/blob/master/meson_options.txt
mesonFlags = [
"-Dmanpages=enabled"
"-Dconvert-icon=enabled"
"-Dsynctex=enabled"
2024-01-02 22:19:21 +00:00
"-Dtests=disabled"
2020-02-26 14:45:31 +00:00
# Make sure tests are enabled for doCheck
2024-01-02 22:19:21 +00:00
# (lib.mesonEnable "tests" finalAttrs.finalPackage.doCheck)
(lib.mesonEnable "seccomp" stdenv.hostPlatform.isLinux)
];
2018-02-14 19:52:15 +00:00
nativeBuildInputs = [
2024-05-26 18:02:58 +00:00
meson
ninja
pkg-config
desktop-file-utils
python3.pythonOnBuildForHost.pkgs.sphinx
gettext
wrapGAppsHook3
libxml2
appstream-glib
2020-08-14 09:23:00 +00:00
];
2018-02-14 19:52:15 +00:00
2017-02-15 14:01:40 +00:00
buildInputs = [
2024-05-26 18:02:58 +00:00
gtk
girara
libintl
sqlite
glib
file
librsvg
check
json-glib
texlive.bin.core
2024-05-26 18:02:58 +00:00
] ++ lib.optional stdenv.isLinux libseccomp ++ lib.optional stdenv.isDarwin gtk-mac-integration;
2016-03-01 19:41:31 +00:00
2021-05-15 17:10:11 +00:00
doCheck = !stdenv.isDarwin;
passthru.updateScript = gitUpdater { };
meta = with lib; {
2024-05-26 18:03:26 +00:00
homepage = "https://pwmt.org/projects/zathura";
description = "Core component for zathura PDF viewer";
2018-03-27 19:39:19 +00:00
license = licenses.zlib;
platforms = platforms.unix;
maintainers = with maintainers; [ globin ];
};
})