2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
|
2017-04-07 15:11:14 -07:00
|
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
|
|
}:
|
2011-04-24 11:16:51 -07:00
|
|
|
|
2017-04-07 15:11:14 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "leptonica";
|
2020-08-06 00:41:00 -07:00
|
|
|
version = "1.80.0";
|
2013-06-25 00:17:34 -07:00
|
|
|
|
2011-04-24 11:16:51 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "http://www.leptonica.org/source/${pname}-${version}.tar.gz";
|
2020-08-06 00:41:00 -07:00
|
|
|
sha256 = "192bs676ind8627f0v3v8d1q7r4xwc7q0zvbdbxn1fgvmv14d77c";
|
2011-04-24 11:16:51 -07:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-04-07 15:11:14 -07:00
|
|
|
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
|
2019-05-10 14:51:46 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
checkInputs = [ which gnuplot ];
|
2019-11-07 08:38:49 -08:00
|
|
|
|
|
|
|
# Fails on pngio_reg for unknown reason
|
|
|
|
doCheck = false; # !stdenv.isDarwin;
|
2011-04-24 11:16:51 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image processing and analysis library";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.leptonica.org/";
|
2021-01-21 09:00:13 -08:00
|
|
|
license = lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
|
|
|
|
platforms = lib.platforms.unix;
|
2011-04-24 11:16:51 -07:00
|
|
|
};
|
|
|
|
}
|