2018-05-25 08:38:09 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, makeWrapper, pkgconfig
|
2018-03-27 20:39:19 +01:00
|
|
|
, appstream-glib, desktop-file-utils, python3
|
2018-07-21 01:44:44 +01:00
|
|
|
, gtk, girara, gettext, libxml2
|
2018-08-21 16:27:31 +01:00
|
|
|
, sqlite, glib, texlive, libintl, libseccomp
|
2018-02-14 19:52:15 +00:00
|
|
|
, gtk-mac-integration, synctexSupport ? true
|
2017-02-15 14:01:40 +00:00
|
|
|
}:
|
2016-06-10 15:04:22 +01:00
|
|
|
|
|
|
|
assert synctexSupport -> texlive != null;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2017-02-15 14:01:40 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2012-05-14 22:43:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-27 20:39:19 +01:00
|
|
|
name = "zathura-core-${version}";
|
2018-09-22 13:17:34 +01:00
|
|
|
version = "0.4.1";
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-27 20:39:19 +01:00
|
|
|
url = "https://pwmt.org/projects/zathura/download/zathura-${version}.tar.xz";
|
2018-09-22 13:17:34 +01:00
|
|
|
sha256 = "1znr3psqda06xklzj8mn452w908llapcg1rj468jwpg0wzv6pxfn";
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
|
|
|
|
2018-02-14 19:52:15 +00:00
|
|
|
nativeBuildInputs = [
|
2018-03-27 20:39:19 +01:00
|
|
|
meson ninja pkgconfig appstream-glib desktop-file-utils python3.pkgs.sphinx
|
|
|
|
gettext makeWrapper libxml2
|
2018-03-14 19:15:06 +00:00
|
|
|
];
|
2018-02-14 19:52:15 +00:00
|
|
|
|
2017-02-15 14:01:40 +00:00
|
|
|
buildInputs = [
|
2018-08-21 16:27:31 +01:00
|
|
|
gtk girara libintl libseccomp
|
2018-03-27 20:39:19 +01:00
|
|
|
sqlite glib
|
2018-02-14 19:52:15 +00:00
|
|
|
] ++ optional synctexSupport texlive.bin.core
|
|
|
|
++ optional stdenv.isDarwin [ gtk-mac-integration ];
|
2016-03-01 19:41:31 +00:00
|
|
|
|
2017-02-15 14:01:40 +00:00
|
|
|
meta = {
|
2018-03-27 20:39:19 +01:00
|
|
|
homepage = https://pwmt.org/projects/zathura/;
|
2012-08-16 15:33:25 +01:00
|
|
|
description = "A core component for zathura PDF viewer";
|
2018-03-27 20:39:19 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.unix;
|
2016-08-26 01:42:08 +01:00
|
|
|
maintainers = with maintainers; [ garbas ];
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
|
|
|
}
|