3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/zathura/core/default.nix

55 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig
2018-03-27 20:39:19 +01:00
, appstream-glib, desktop-file-utils, python3
, gtk, girara, gettext, libxml2, check
2018-08-21 16:27:31 +01:00
, sqlite, glib, texlive, libintl, libseccomp
, file, librsvg
, gtk-mac-integration
2017-02-15 14:01:40 +00:00
}:
2017-02-15 14:01:40 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
2020-02-26 14:45:18 +00:00
pname = "zathura";
2020-11-13 17:48:56 +00:00
version = "0.4.7";
src = fetchurl {
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
2020-11-13 17:48:56 +00:00
sha256 = "1rx1fk9s556fk59lmqgvhwrmv71ashh89bx9adjq46wq5gzdn4p0";
};
outputs = [ "bin" "man" "dev" "out" ];
# Flag list:
# https://github.com/pwmt/zathura/blob/master/meson_options.txt
mesonFlags = [
"-Dsqlite=enabled"
"-Dmagic=enabled"
"-Dmanpages=enabled"
"-Dconvert-icon=enabled"
"-Dsynctex=enabled"
2020-02-26 14:45:31 +00:00
# Make sure tests are enabled for doCheck
"-Dtests=enabled"
2020-08-14 10:23:00 +01:00
] ++ optional (!stdenv.isLinux) "-Dseccomp=disabled";
2018-02-14 19:52:15 +00:00
nativeBuildInputs = [
2019-03-03 21:29:52 +00:00
meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx
2020-08-14 10:23:00 +01:00
gettext wrapGAppsHook libxml2 check appstream-glib
];
2018-02-14 19:52:15 +00:00
2017-02-15 14:01:40 +00:00
buildInputs = [
2019-03-03 21:29:52 +00:00
gtk girara libintl sqlite glib file librsvg
texlive.bin.core
] ++ optional stdenv.isLinux libseccomp
2019-03-03 21:29:52 +00:00
++ optional stdenv.isDarwin gtk-mac-integration;
2016-03-01 19:41:31 +00:00
doCheck = true;
2017-02-15 14:01:40 +00:00
meta = {
homepage = "https://git.pwmt.org/pwmt/zathura";
description = "A core component for zathura PDF viewer";
2018-03-27 20:39:19 +01:00
license = licenses.zlib;
platforms = platforms.unix;
maintainers = with maintainers; [ globin ];
};
}