mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
75 lines
2.0 KiB
Nix
75 lines
2.0 KiB
Nix
{ lib, stdenv
|
|
, mkDerivation
|
|
, fetchurl
|
|
, pkg-config
|
|
, djvulibre
|
|
, qtbase
|
|
, qttools
|
|
, xorg
|
|
, libtiff
|
|
, darwin
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "djview";
|
|
version = "4.10.6";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
|
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
qttools
|
|
];
|
|
|
|
buildInputs = [
|
|
djvulibre
|
|
qtbase
|
|
xorg.libXt
|
|
libtiff
|
|
] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AGL;
|
|
|
|
configureFlags = [
|
|
"--disable-silent-rules"
|
|
"--disable-dependency-tracking"
|
|
"--with-x"
|
|
"--with-tiff"
|
|
# NOTE: 2019-09-19: experimental "--enable-npdjvu" fails
|
|
] ++ lib.optional stdenv.isDarwin "--enable-mac";
|
|
|
|
passthru = {
|
|
mozillaPlugin = "/lib/mozilla/plugins";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A portable DjVu viewer (Qt5) and browser (nsdejavu) plugin";
|
|
homepage = "http://djvu.sourceforge.net/djview4.html";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
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).
|
|
'';
|
|
};
|
|
}
|