1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
2 , giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
5 stdenv.mkDerivation rec {
10 url = "https://github.com/DanBloomberg/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
11 hash = "sha256-jxhhXgdDr3339QmFxzDfzwyTVIBz0fVmIeQVaotU090=";
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15 buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
16 enableParallelBuilding = true;
18 nativeCheckInputs = [ which gnuplot ];
20 # Fails on pngio_reg for unknown reason
21 doCheck = false; # !stdenv.isDarwin;
24 description = "Image processing and analysis library";
25 homepage = "http://www.leptonica.org/";
26 license = lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
27 platforms = lib.platforms.unix;