20 outputs = [ "out" "man" ];
23 url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
24 hash = "sha256-VnPGqLfhlbkaFyCyQJGRW4FF3jSHnbEVi8k2sQDq8+M=";
40 ] ++ lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.AGL;
43 NOCONFIGURE=1 ./autogen.sh
47 "--disable-silent-rules"
48 "--disable-dependency-tracking"
51 "--disable-nsdejavu" # 2023-11-14: modern browsers have dropped support for NPAPI
52 ] ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-mac";
55 broken = stdenv.hostPlatform.isDarwin;
56 description = "Portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
57 mainProgram = "djview";
58 homepage = "https://djvu.sourceforge.net/djview4.html";
59 license = licenses.gpl2Plus;
60 platforms = platforms.unix;
61 maintainers = with maintainers; [ Anton-Latukha ];
63 The portable DjVu viewer (Qt5) and browser (nsdejavu) plugin.
66 - entirely based on the public DjVulibre api.
67 - entirely written in portable Qt5.
68 - works natively under Unix/X11, MS Windows, and macOS X.
69 - continuous scrolling of pages
70 - side-by-side display of pages
71 - ability to specify a url to the djview command
72 - all plugin and cgi options available from the command line
73 - all silly annotations implemented
74 - display thumbnails as a grid
76 - page names supported (see djvused command set-page-title)
77 - metadata dialog (see djvused command set-meta)
78 - implemented as reusable Qt widgets
80 nsdejavu: browser plugin for DjVu. It internally uses djview.
81 Has CGI-style arguments to configure the view of document (see man).