Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / leptonica / default.nix
blobceb42cd49154f105ec8be2e070f09b3ddbbba469
1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
2 , giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
3 }:
5 stdenv.mkDerivation rec {
6   pname = "leptonica";
7   version = "1.83.1";
9   src = fetchurl {
10     url = "https://github.com/DanBloomberg/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
11     hash = "sha256-jxhhXgdDr3339QmFxzDfzwyTVIBz0fVmIeQVaotU090=";
12   };
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;
23   meta = {
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;
28   };