nixpkgs/pkgs/applications/misc/zathura/core/default.nix

54 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig
2018-03-27 12:39:19 -07:00
, appstream-glib, desktop-file-utils, python3
, gtk, girara, gettext, libxml2, check
2018-08-21 08:27:31 -07:00
, sqlite, glib, texlive, libintl, libseccomp
, file, librsvg
, gtk-mac-integration
2017-02-15 06:01:40 -08:00
}:
2017-02-15 06:01:40 -08:00
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "zathura-core";
version = "0.4.4";
src = fetchurl {
url = "https://git.pwmt.org/pwmt/zathura/-/archive/${version}/zathura-${version}.tar.gz";
sha256 = "0v5klgr009rsxi41h73k0398jbgmgh37asvwz2w15i4fzmw89jgb";
};
outputs = [ "bin" "man" "dev" "out" ];
# Flag list:
# https://github.com/pwmt/zathura/blob/master/meson_options.txt
mesonFlags = [
"-Dsqlite=enabled"
"-Dmagic=enabled"
# "-Dseccomp=enabled"
"-Dmanpages=enabled"
"-Dconvert-icon=enabled"
"-Dsynctex=enabled"
];
2018-02-14 11:52:15 -08:00
nativeBuildInputs = [
2019-03-03 13:29:52 -08:00
meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx
gettext wrapGAppsHook libxml2 check
2019-03-03 13:29:52 -08:00
] ++ optional stdenv.isLinux appstream-glib;
2018-02-14 11:52:15 -08:00
2017-02-15 06:01:40 -08:00
buildInputs = [
2019-03-03 13:29:52 -08:00
gtk girara libintl sqlite glib file librsvg
texlive.bin.core
] ++ optional stdenv.isLinux libseccomp
2019-03-03 13:29:52 -08:00
++ optional stdenv.isDarwin gtk-mac-integration;
2016-03-01 11:41:31 -08:00
doCheck = true;
2017-02-15 06:01:40 -08:00
meta = {
homepage = "https://git.pwmt.org/pwmt/zathura";
description = "A core component for zathura PDF viewer";
2018-03-27 12:39:19 -07:00
license = licenses.zlib;
platforms = platforms.unix;
maintainers = with maintainers; [ globin ];
};
}