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