2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, pkgconfig, which, gnuplot
|
2017-04-08 00:11:14 +02:00
|
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
|
|
}:
|
2011-04-24 20:16:51 +02:00
|
|
|
|
2017-04-08 00:11:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "leptonica-${version}";
|
2019-04-28 21:17:42 +02:00
|
|
|
version = "1.78.0";
|
2013-06-25 09:17:34 +02:00
|
|
|
|
2011-04-24 20:16:51 +02:00
|
|
|
src = fetchurl {
|
2017-04-08 00:11:14 +02:00
|
|
|
url = "http://www.leptonica.org/source/${name}.tar.gz";
|
2019-04-28 21:17:42 +02:00
|
|
|
sha256 = "122s9b8hi93va4lgwnwrbma50x5fp740npy0s92xybd2wy0jxvg2";
|
2011-04-24 20:16:51 +02:00
|
|
|
};
|
|
|
|
|
2017-04-08 00:11:14 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
|
2019-05-10 23:51:46 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
checkInputs = [ which gnuplot ];
|
2019-05-11 10:08:59 +02:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2011-04-24 20:16:51 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Image processing and analysis library";
|
|
|
|
homepage = http://www.leptonica.org/;
|
2019-05-10 23:51:46 +02:00
|
|
|
license = stdenv.lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2011-04-24 20:16:51 +02:00
|
|
|
};
|
|
|
|
}
|