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