nixpkgs/pkgs/development/libraries/leptonica/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

30 lines
897 B
Nix

{ 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 = stdenv.lib.licenses.bsd2; # http://www.leptonica.org/about-the-license.html
platforms = stdenv.lib.platforms.unix;
};
}