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