3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/leptonica/default.nix
Renaud 253dae1edf
leptonica: disable checks on darwin
18 tests failed with errors like:
> Error in callSystemDebug: iOS 11 does not support system()
> Error in fopenReadStream: file not found

Closes #61259
2019-05-11 10:08:59 +02:00

28 lines
851 B
Nix

{ stdenv, fetchurl, fetchpatch, autoreconfHook, pkgconfig, which, gnuplot
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
}:
stdenv.mkDerivation rec {
name = "leptonica-${version}";
version = "1.78.0";
src = fetchurl {
url = "http://www.leptonica.org/source/${name}.tar.gz";
sha256 = "122s9b8hi93va4lgwnwrbma50x5fp740npy0s92xybd2wy0jxvg2";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ giflib libjpeg libpng libtiff libwebp openjpeg zlib ];
enableParallelBuilding = true;
checkInputs = [ which gnuplot ];
doCheck = !stdenv.isDarwin;
meta = {
description = "Image processing and analysis library";
homepage = http://www.leptonica.org/;
license = stdenv.lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
platforms = stdenv.lib.platforms.unix;
};
}