841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
29 lines
887 B
Nix
29 lines
887 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "leptonica";
|
|
version = "1.81.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.leptonica.org/source/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-0ZKwVem9YLhBEQI8yYDDc5Dm1CexlKj9K9YRVDo73a0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
|
|
enableParallelBuilding = true;
|
|
|
|
checkInputs = [ which gnuplot ];
|
|
|
|
# Fails on pngio_reg for unknown reason
|
|
doCheck = false; # !stdenv.isDarwin;
|
|
|
|
meta = {
|
|
description = "Image processing and analysis library";
|
|
homepage = "http://www.leptonica.org/";
|
|
license = lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|