2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchurl,
|
|
|
|
libjpeg,
|
|
|
|
libtiff,
|
|
|
|
librsvg,
|
|
|
|
libiconv,
|
|
|
|
bash,
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "djvulibre";
|
|
|
|
version = "3.5.28";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1p1fiygq9ny8aimwc4vxwjc6k9ykgdsq1sq06slfbzalfvm0kl7w";
|
|
|
|
};
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
outputs = [
|
|
|
|
"bin"
|
|
|
|
"dev"
|
|
|
|
"out"
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
2024-06-30 08:12:46 +00:00
|
|
|
nativeBuildInputs = [ librsvg ];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
libiconv
|
|
|
|
bash
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Remove uses of the `register` storage class specifier, which was removed in C++17.
|
|
|
|
# Fixes compilation with clang 16, which defaults to C++17.
|
|
|
|
./c++17-register-class.patch
|
|
|
|
|
|
|
|
./CVE-2021-3500+CVE-2021-32490+CVE-2021-32491+CVE-2021-32492+CVE-2021-32493.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The big set of CLI tools to make/modify/optimize/show/export DJVU files";
|
|
|
|
homepage = "https://djvu.sourceforge.net";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ Anton-Latukha ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|