2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, libjpeg
|
|
|
|
, libtiff
|
|
|
|
, librsvg
|
|
|
|
, libiconv
|
2022-09-09 14:08:57 +00:00
|
|
|
, bash
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "djvulibre";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "3.5.28";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/djvu/${pname}-${version}.tar.gz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "1p1fiygq9ny8aimwc4vxwjc6k9ykgdsq1sq06slfbzalfvm0kl7w";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjpeg
|
|
|
|
libtiff
|
|
|
|
libiconv
|
2022-09-09 14:08:57 +00:00
|
|
|
bash
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
# Remove uses of the `register` storage class specifier, which was removed in C++17.
|
|
|
|
# Fixes compilation with clang 16, which defaults to C++17.
|
|
|
|
patches = [ ./c++17-register-class.patch ];
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The big set of CLI tools to make/modify/optimize/show/export DJVU files";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://djvu.sourceforge.net";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ Anton-Latukha ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|