2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2019-09-19 01:15:17 +02:00
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-09-19 01:15:17 +02:00
|
|
|
, djvulibre
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, xorg
|
|
|
|
, libtiff
|
|
|
|
, darwin
|
|
|
|
}:
|
2007-11-11 17:52:29 +01:00
|
|
|
|
2019-09-19 01:15:17 +02:00
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "djview";
|
2017-03-19 14:40:15 +01:00
|
|
|
version = "4.10.6";
|
|
|
|
|
2015-09-20 08:43:32 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
2017-03-19 14:40:15 +01:00
|
|
|
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
|
2015-09-20 08:43:32 +02:00
|
|
|
};
|
2007-11-11 17:52:29 +01:00
|
|
|
|
2019-09-19 01:15:17 +02:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-09-19 01:15:17 +02:00
|
|
|
qttools
|
|
|
|
];
|
2012-02-10 11:13:44 +01:00
|
|
|
|
2019-09-19 01:15:17 +02:00
|
|
|
buildInputs = [
|
|
|
|
djvulibre
|
|
|
|
qtbase
|
|
|
|
xorg.libXt
|
|
|
|
libtiff
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AGL;
|
2019-09-19 01:15:17 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-silent-rules"
|
|
|
|
"--disable-dependency-tracking"
|
|
|
|
"--with-x"
|
|
|
|
"--with-tiff"
|
|
|
|
# NOTE: 2019-09-19: experimental "--enable-npdjvu" fails
|
2021-01-15 14:21:58 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin "--enable-mac";
|
2012-02-10 11:13:44 +01:00
|
|
|
|
2011-03-10 22:39:09 +01:00
|
|
|
passthru = {
|
2019-03-31 20:59:13 +02:00
|
|
|
mozillaPlugin = "/lib/mozilla/plugins";
|
2011-03-10 22:39:09 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-19 01:15:17 +02:00
|
|
|
description = "A portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
|
|
|
|
homepage = "http://djvu.sourceforge.net/djview4.html";
|
2015-09-20 08:43:32 +02:00
|
|
|
license = licenses.gpl2;
|
2017-03-19 14:40:15 +01:00
|
|
|
platforms = platforms.unix;
|
2019-09-19 01:15:17 +02:00
|
|
|
maintainers = with maintainers; [ Anton-Latukha ];
|
|
|
|
longDescription = ''
|
|
|
|
The portable DjVu viewer (Qt5) and browser (nsdejavu) plugin.
|
|
|
|
|
|
|
|
Djview highlights:
|
|
|
|
- entirely based on the public DjVulibre api.
|
|
|
|
- entirely written in portable Qt5.
|
|
|
|
- works natively under Unix/X11, MS Windows, and macOS X.
|
|
|
|
- continuous scrolling of pages
|
|
|
|
- side-by-side display of pages
|
|
|
|
- ability to specify a url to the djview command
|
|
|
|
- all plugin and cgi options available from the command line
|
|
|
|
- all silly annotations implemented
|
|
|
|
- display thumbnails as a grid
|
|
|
|
- display outlines
|
|
|
|
- page names supported (see djvused command set-page-title)
|
|
|
|
- metadata dialog (see djvused command set-meta)
|
|
|
|
- implemented as reusable Qt widgets
|
|
|
|
|
|
|
|
nsdejavu: browser plugin for DjVu. It internally uses djview.
|
|
|
|
Has CGI-style arguments to configure the view of document (see man).
|
|
|
|
'';
|
2015-09-20 08:43:32 +02:00
|
|
|
};
|
2007-11-11 17:52:29 +01:00
|
|
|
}
|