2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
|
2020-04-24 23:36:52 +00:00
|
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "leptonica";
|
2021-12-25 05:07:40 +00:00
|
|
|
version = "1.82.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.leptonica.org/source/${pname}-${version}.tar.gz";
|
2021-12-25 05:07:40 +00:00
|
|
|
sha256 = "sha256-FVMC7pFGaMJ7b+PKn/LaY7JF9tYvMGHI8nVjd0uK4tY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ which gnuplot ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Fails on pngio_reg for unknown reason
|
|
|
|
doCheck = false; # !stdenv.isDarwin;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image processing and analysis library";
|
|
|
|
homepage = "http://www.leptonica.org/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|