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

59 lines
1.4 KiB
Nix
Raw Normal View History

2014-05-17 14:16:50 +02:00
{ callPackage, pkgs, fetchurl, useMupdf }:
rec {
inherit (pkgs) stdenv;
2014-02-20 10:31:16 +01:00
icon = ./icon.xpm;
zathura_core = callPackage ./core {
gtk = pkgs.gtk3;
2014-02-20 10:31:16 +01:00
zathura_icon = icon;
};
zathura_pdf_poppler = callPackage ./pdf-poppler { };
2014-05-17 14:16:50 +02:00
zathura_pdf_mupdf = callPackage ./pdf-mupdf {
gtk = pkgs.gtk3;
};
zathura_djvu = callPackage ./djvu {
gtk = pkgs.gtk3;
};
zathura_ps = callPackage ./ps {
gtk = pkgs.gtk3;
};
zathuraWrapper = stdenv.mkDerivation {
2014-02-20 10:31:16 +01:00
inherit zathura_core icon;
name = "zathura-${zathura_core.version}";
plugins_path = stdenv.lib.makeSearchPath "lib" [
zathura_djvu
zathura_ps
2014-05-17 14:16:50 +02:00
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
];
builder = ./builder.sh;
preferLocalBuild = true;
meta = {
homepage = http://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
poppler rendering library and the gtk+ toolkit. The idea behind zathura
is an application that provides a minimalistic and space saving interface
as well as an easy usage that mainly focuses on keyboard interaction.
'';
license = stdenv.lib.licenses.zlib;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.garbas stdenv.lib.maintainers.smironov ];
};
};
}