Merge pull request #314916 from Lord-Valen/zathura
zathura: 0.5.5 -> 0.5.6; zathura-pdf-mupdf: 0.4.1 -> 0.4.2
This commit is contained in:
commit
3e815e6361
@ -1,5 +1,15 @@
|
||||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, zathura_core
|
||||
, girara, gettext, libarchive }:
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchurl,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
zathura_core,
|
||||
girara,
|
||||
gettext,
|
||||
libarchive,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zathura-cb";
|
||||
@ -7,11 +17,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "1j5v32f9ki35v1jc7a067anhlgqplzrp4fqvznlixfhcm0bwmc49";
|
||||
hash = "sha256-ibDKF6gMuh6p/Rs7cvOnFz8KrToGqMNk2GXEmZwYu8g=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
||||
buildInputs = [ libarchive zathura_core girara ];
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gettext
|
||||
];
|
||||
buildInputs = [
|
||||
libarchive
|
||||
zathura_core
|
||||
girara
|
||||
];
|
||||
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
|
||||
|
||||
@ -20,7 +39,7 @@ stdenv.mkDerivation rec {
|
||||
description = "A zathura CB plugin";
|
||||
longDescription = ''
|
||||
The zathura-cb plugin adds comic book support to zathura.
|
||||
'';
|
||||
'';
|
||||
license = licenses.zlib;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ jlesquembre ];
|
||||
|
@ -1,24 +1,48 @@
|
||||
{ lib, stdenv, fetchFromGitLab, meson, ninja, wrapGAppsHook3, pkg-config, gitUpdater
|
||||
, appstream-glib, json-glib, desktop-file-utils, python3
|
||||
, gtk, girara, gettext, libxml2, check
|
||||
, sqlite, glib, texlive, libintl, libseccomp
|
||||
, file, librsvg
|
||||
, gtk-mac-integration
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
meson,
|
||||
ninja,
|
||||
wrapGAppsHook3,
|
||||
pkg-config,
|
||||
gitUpdater,
|
||||
appstream-glib,
|
||||
json-glib,
|
||||
desktop-file-utils,
|
||||
python3,
|
||||
gtk,
|
||||
girara,
|
||||
gettext,
|
||||
libxml2,
|
||||
check,
|
||||
sqlite,
|
||||
glib,
|
||||
texlive,
|
||||
libintl,
|
||||
libseccomp,
|
||||
file,
|
||||
librsvg,
|
||||
gtk-mac-integration,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "zathura";
|
||||
version = "0.5.5";
|
||||
version = "0.5.6";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "git.pwmt.org";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pwmt";
|
||||
repo = "zathura";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-mHEYqgBB55p8nykFtvYtP5bWexp/IqFbeLs7gZmXCeE=";
|
||||
hash = "sha256-lTEBIZ3lkzjJ+L1qecrcL8iseo8AvSIo3Wh65/ikwac=";
|
||||
};
|
||||
|
||||
outputs = [ "bin" "man" "dev" "out" ];
|
||||
outputs = [
|
||||
"bin"
|
||||
"man"
|
||||
"dev"
|
||||
"out"
|
||||
];
|
||||
|
||||
# Flag list:
|
||||
# https://github.com/pwmt/zathura/blob/master/meson_options.txt
|
||||
@ -33,22 +57,36 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson ninja pkg-config desktop-file-utils python3.pythonOnBuildForHost.pkgs.sphinx
|
||||
gettext wrapGAppsHook3 libxml2 appstream-glib
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
desktop-file-utils
|
||||
python3.pythonOnBuildForHost.pkgs.sphinx
|
||||
gettext
|
||||
wrapGAppsHook3
|
||||
libxml2
|
||||
appstream-glib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk girara libintl sqlite glib file librsvg check json-glib
|
||||
gtk
|
||||
girara
|
||||
libintl
|
||||
sqlite
|
||||
glib
|
||||
file
|
||||
librsvg
|
||||
check
|
||||
json-glib
|
||||
texlive.bin.core
|
||||
] ++ lib.optional stdenv.isLinux libseccomp
|
||||
++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
||||
] ++ lib.optional stdenv.isLinux libseccomp ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
||||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
passthru.updateScript = gitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://git.pwmt.org/pwmt/zathura";
|
||||
homepage = "https://pwmt.org/projects/zathura";
|
||||
description = "A core component for zathura PDF viewer";
|
||||
license = licenses.zlib;
|
||||
platforms = platforms.unix;
|
||||
|
@ -1,6 +1,9 @@
|
||||
{ config, pkgs
|
||||
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
|
||||
, useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin) }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
|
||||
useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin),
|
||||
}:
|
||||
|
||||
let
|
||||
callPackage = pkgs.newScope self;
|
||||
@ -29,5 +32,5 @@ let
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
in self
|
||||
in
|
||||
self
|
||||
|
@ -1,4 +1,16 @@
|
||||
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gtk, zathura_core, girara, djvulibre, gettext }:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
gtk,
|
||||
zathura_core,
|
||||
girara,
|
||||
djvulibre,
|
||||
gettext,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zathura-djvu";
|
||||
@ -6,11 +18,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln";
|
||||
hash = "sha256-lub4pu5TIxBzsvcAMmSHL4RQHmPD2nvwWY0EYoawwgA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||
buildInputs = [ djvulibre gettext zathura_core gtk girara ];
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [
|
||||
djvulibre
|
||||
gettext
|
||||
zathura_core
|
||||
gtk
|
||||
girara
|
||||
];
|
||||
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
|
||||
|
||||
@ -26,4 +48,3 @@ stdenv.mkDerivation rec {
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,29 +1,39 @@
|
||||
{ stdenv, lib, meson, ninja, fetchurl, cairo
|
||||
, girara
|
||||
, gtk-mac-integration
|
||||
, gumbo
|
||||
, jbig2dec
|
||||
, libjpeg
|
||||
, mupdf
|
||||
, openjpeg
|
||||
, pkg-config
|
||||
, zathura_core
|
||||
, tesseract
|
||||
, leptonica
|
||||
, mujs
|
||||
, gitUpdater
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
meson,
|
||||
ninja,
|
||||
fetchurl,
|
||||
cairo,
|
||||
girara,
|
||||
gtk-mac-integration,
|
||||
gumbo,
|
||||
jbig2dec,
|
||||
libjpeg,
|
||||
mupdf,
|
||||
openjpeg,
|
||||
pkg-config,
|
||||
zathura_core,
|
||||
tesseract,
|
||||
leptonica,
|
||||
mujs,
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.4.1";
|
||||
version = "0.4.2";
|
||||
pname = "zathura-pdf-mupdf";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
||||
hash = "sha256-+YKgHWUj+iVmk4EYTAamJe2/15YcvbBxHcz9ucQCrC8=";
|
||||
hash = "sha256-fFC+z9mJX9ccExsV336Ut+zJJa8UdfUz/qVp9YgcnhM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
@ -39,15 +49,13 @@ stdenv.mkDerivation rec {
|
||||
mujs
|
||||
] ++ lib.optional stdenv.isDarwin gtk-mac-integration;
|
||||
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR= "lib/zathura";
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/^mupdfthird =/d' -e 's/, mupdfthird//g' meson.build
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://git.pwmt.org/pwmt/zathura-pdf-mupdf.git";
|
||||
};
|
||||
passthru.updateScript = gitUpdater { url = "https://git.pwmt.org/pwmt/zathura-pdf-mupdf.git"; };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pwmt.org/projects/zathura-pdf-mupdf/";
|
||||
|
@ -1,4 +1,14 @@
|
||||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, zathura_core, girara, poppler }:
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchurl,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
zathura_core,
|
||||
girara,
|
||||
poppler,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zathura-pdf-poppler";
|
||||
@ -6,11 +16,19 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "049h8m9swxni7ar6fsbm0hb3fg4ffmjc3m6vyg78ilfi3kayxavi";
|
||||
hash = "sha256-cavu1RzR0YjO89vUwWR1jjw3FgR1aWeyOtF2rlNFMBE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config zathura_core ];
|
||||
buildInputs = [ poppler girara ];
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
zathura_core
|
||||
];
|
||||
buildInputs = [
|
||||
poppler
|
||||
girara
|
||||
];
|
||||
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
|
||||
|
||||
|
@ -1,4 +1,15 @@
|
||||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, zathura_core, girara, libspectre, gettext }:
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchurl,
|
||||
meson,
|
||||
ninja,
|
||||
pkg-config,
|
||||
zathura_core,
|
||||
girara,
|
||||
libspectre,
|
||||
gettext,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zathura-ps";
|
||||
@ -6,11 +17,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
|
||||
sha256 = "0ilf63wxn1yzis9m3qs8mxbk316yxdzwxrrv86wpiygm9hhgk5sq";
|
||||
hash = "sha256-WJf5IEz1+Xi5QTvnzn/r3oQxV69I41GTjt8H2/kwjkY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkg-config gettext ];
|
||||
buildInputs = [ libspectre zathura_core girara ];
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gettext
|
||||
];
|
||||
buildInputs = [
|
||||
libspectre
|
||||
zathura_core
|
||||
girara
|
||||
];
|
||||
|
||||
PKG_CONFIG_ZATHURA_PLUGINDIR = "lib/zathura";
|
||||
|
||||
@ -20,10 +40,9 @@ stdenv.mkDerivation rec {
|
||||
longDescription = ''
|
||||
The zathura-ps plugin adds PS support to zathura by using the
|
||||
libspectre library.
|
||||
'';
|
||||
'';
|
||||
license = licenses.zlib;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,28 +1,44 @@
|
||||
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
||||
{
|
||||
symlinkJoin,
|
||||
lib,
|
||||
makeWrapper,
|
||||
zathura_core,
|
||||
file,
|
||||
plugins ? [ ],
|
||||
}:
|
||||
symlinkJoin {
|
||||
name = "zathura-with-plugins-${zathura_core.version}";
|
||||
|
||||
paths = with zathura_core; [ man dev out ] ++ plugins;
|
||||
paths =
|
||||
with zathura_core;
|
||||
[
|
||||
man
|
||||
dev
|
||||
out
|
||||
]
|
||||
++ plugins;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postBuild = let
|
||||
fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
|
||||
in ''
|
||||
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||
--prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
|
||||
postBuild =
|
||||
let
|
||||
fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
|
||||
in
|
||||
''
|
||||
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
||||
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
||||
--prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
|
||||
|
||||
# zathura fish completion references the zathura_core derivation to
|
||||
# check for supported plugins which live in the wrapper derivation,
|
||||
# so we need to fix the path to reference $out instead.
|
||||
rm "$out/${fishCompletion}"
|
||||
substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
|
||||
--replace "${zathura_core.out}" "$out"
|
||||
'';
|
||||
# zathura fish completion references the zathura_core derivation to
|
||||
# check for supported plugins which live in the wrapper derivation,
|
||||
# so we need to fix the path to reference $out instead.
|
||||
rm "$out/${fishCompletion}"
|
||||
substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
|
||||
--replace "${zathura_core.out}" "$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://git.pwmt.org/pwmt/zathura/";
|
||||
homepage = "https://pwmt.org/projects/zathura/";
|
||||
description = "A highly customizable and functional PDF viewer";
|
||||
longDescription = ''
|
||||
Zathura is a highly customizable and functional PDF viewer based on the
|
||||
@ -32,7 +48,11 @@ symlinkJoin {
|
||||
'';
|
||||
license = licenses.zlib;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ smironov globin TethysSvensson ];
|
||||
maintainers = with maintainers; [
|
||||
smironov
|
||||
globin
|
||||
TethysSvensson
|
||||
];
|
||||
mainProgram = "zathura";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user