2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkg-config
|
2018-03-27 21:39:19 +02:00
|
|
|
, appstream-glib, desktop-file-utils, python3
|
2019-06-25 17:48:32 +02:00
|
|
|
, gtk, girara, gettext, libxml2, check
|
2018-08-21 17:27:31 +02:00
|
|
|
, sqlite, glib, texlive, libintl, libseccomp
|
2019-03-10 21:04:56 +01:00
|
|
|
, file, librsvg
|
2019-08-01 21:05:25 +02:00
|
|
|
, gtk-mac-integration
|
2017-02-15 15:01:40 +01:00
|
|
|
}:
|
2016-06-10 16:04:22 +02:00
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
with lib;
|
2017-02-15 15:01:40 +01:00
|
|
|
|
2012-05-14 23:43:46 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2020-02-26 15:45:18 +01:00
|
|
|
pname = "zathura";
|
2020-11-13 18:48:56 +01:00
|
|
|
version = "0.4.7";
|
2012-05-14 23:43:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-25 08:31:52 +01:00
|
|
|
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
2020-11-13 18:48:56 +01:00
|
|
|
sha256 = "1rx1fk9s556fk59lmqgvhwrmv71ashh89bx9adjq46wq5gzdn4p0";
|
2012-05-14 23:43:46 +02:00
|
|
|
};
|
|
|
|
|
2018-08-11 19:04:06 +02:00
|
|
|
outputs = [ "bin" "man" "dev" "out" ];
|
|
|
|
|
2019-03-10 21:04:56 +01:00
|
|
|
# Flag list:
|
|
|
|
# https://github.com/pwmt/zathura/blob/master/meson_options.txt
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsqlite=enabled"
|
|
|
|
"-Dmagic=enabled"
|
|
|
|
"-Dmanpages=enabled"
|
|
|
|
"-Dconvert-icon=enabled"
|
2019-08-01 21:05:25 +02:00
|
|
|
"-Dsynctex=enabled"
|
2020-02-26 15:45:31 +01:00
|
|
|
# Make sure tests are enabled for doCheck
|
|
|
|
"-Dtests=enabled"
|
2020-08-14 11:23:00 +02:00
|
|
|
] ++ optional (!stdenv.isLinux) "-Dseccomp=disabled";
|
2019-03-10 21:04:56 +01:00
|
|
|
|
2018-02-14 20:52:15 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:09:27 +01:00
|
|
|
meson ninja pkg-config desktop-file-utils python3.pkgs.sphinx
|
2020-08-14 11:23:00 +02:00
|
|
|
gettext wrapGAppsHook libxml2 check appstream-glib
|
|
|
|
];
|
2018-02-14 20:52:15 +01:00
|
|
|
|
2017-02-15 15:01:40 +01:00
|
|
|
buildInputs = [
|
2019-03-03 22:29:52 +01:00
|
|
|
gtk girara libintl sqlite glib file librsvg
|
2019-08-01 21:05:25 +02:00
|
|
|
texlive.bin.core
|
|
|
|
] ++ optional stdenv.isLinux libseccomp
|
2019-03-03 22:29:52 +01:00
|
|
|
++ optional stdenv.isDarwin gtk-mac-integration;
|
2016-03-01 20:41:31 +01:00
|
|
|
|
2021-05-15 19:10:11 +02:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-06-25 17:48:32 +02:00
|
|
|
|
2017-02-15 15:01:40 +01:00
|
|
|
meta = {
|
2019-10-06 16:21:38 +02:00
|
|
|
homepage = "https://git.pwmt.org/pwmt/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;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2012-05-14 23:43:46 +02:00
|
|
|
};
|
|
|
|
}
|