mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
29 lines
888 B
Nix
29 lines
888 B
Nix
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, which, gnuplot
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "leptonica";
|
|
version = "1.80.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.leptonica.org/source/${pname}-${version}.tar.gz";
|
|
sha256 = "192bs676ind8627f0v3v8d1q7r4xwc7q0zvbdbxn1fgvmv14d77c";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|