2019-02-03 15:33:34 +00:00
|
|
|
{ config, pkgs
|
2019-05-11 22:42:58 +01:00
|
|
|
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
|
2019-08-01 20:05:25 +01:00
|
|
|
, useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin) }:
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
let
|
|
|
|
callPackage = pkgs.newScope self;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
self = rec {
|
2013-11-23 14:19:54 +00:00
|
|
|
gtk = pkgs.gtk3;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2019-08-01 20:05:25 +01:00
|
|
|
zathura_core = callPackage ./core { };
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
zathura_pdf_poppler = callPackage ./pdf-poppler { };
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
zathura_pdf_mupdf = callPackage ./pdf-mupdf { };
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
zathura_djvu = callPackage ./djvu { };
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
zathura_ps = callPackage ./ps { };
|
2014-02-10 20:03:17 +00:00
|
|
|
|
2019-03-10 20:04:56 +00:00
|
|
|
zathura_cb = callPackage ./cb { };
|
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
zathuraWrapper = callPackage ./wrapper.nix {
|
|
|
|
plugins = [
|
|
|
|
zathura_djvu
|
|
|
|
zathura_ps
|
2019-03-10 20:04:56 +00:00
|
|
|
zathura_cb
|
2016-08-26 01:42:08 +01:00
|
|
|
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
|
|
|
];
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
2010-05-29 22:15:13 +01:00
|
|
|
};
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-08-26 01:42:08 +01:00
|
|
|
in self.zathuraWrapper
|