Merge pull request #5775 from nckx/jfbview
Add jfbview 0.4.2: framebuffer PDF/image viewer
This commit is contained in:
commit
1b753579a1
44
pkgs/os-specific/linux/jfbview/default.nix
Normal file
44
pkgs/os-specific/linux/jfbview/default.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, freetype, imlib2, jbig2dec, libjpeg, libX11, mujs
|
||||||
|
, mupdf, ncurses, openjpeg, openssl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "0.4.2"; # TODO: update to 0.5 or later when nixpkgs has caught up
|
||||||
|
name = "jfbview-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
repo = "JFBView";
|
||||||
|
owner = "jichu4n";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1hhlzvs0jhygd3mqpzg5zymrbay9c8ilc4wjnwg00lvxhv3rwswr";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ freetype imlib2 jbig2dec libjpeg libX11 mujs mupdf ncurses
|
||||||
|
openjpeg openssl ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = "jfbpdf jfbview";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
install jfbpdf jfbview $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "PDF and image viewer for the Linux framebuffer";
|
||||||
|
longDescription = ''
|
||||||
|
PDF and image viewer for the Linux framebuffer. Very fast with a number
|
||||||
|
of advanced and unique features including:
|
||||||
|
- Reads PDFs (MuPDF) and common image formats (Imlib2).
|
||||||
|
- Supports arbitrary zoom (10% - 1000%) and rotation.
|
||||||
|
- Table of Contents (TOC) viewer for PDF documents.
|
||||||
|
- Multi-threaded rendering on multi-core machines.
|
||||||
|
- Asynchronous background rendering of the next page.
|
||||||
|
- Customizable multi-threaded caching.
|
||||||
|
'';
|
||||||
|
homepage = http://seasonofcode.com/pages/jfbview.html;
|
||||||
|
license = with licenses; asl20;
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
}
|
@ -8350,6 +8350,8 @@ let
|
|||||||
|
|
||||||
iwlegacy = callPackage ../os-specific/linux/firmware/iwlegacy { };
|
iwlegacy = callPackage ../os-specific/linux/firmware/iwlegacy { };
|
||||||
|
|
||||||
|
jfbview = callPackage ../os-specific/linux/jfbview { };
|
||||||
|
|
||||||
jujuutils = callPackage ../os-specific/linux/jujuutils { };
|
jujuutils = callPackage ../os-specific/linux/jujuutils { };
|
||||||
|
|
||||||
kbd = callPackage ../os-specific/linux/kbd { };
|
kbd = callPackage ../os-specific/linux/kbd { };
|
||||||
|
Loading…
Reference in New Issue
Block a user