mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
28 lines
841 B
Nix
28 lines
841 B
Nix
{ stdenv, fetchurl, autoreconfHook, pkgconfig, which, gnuplot
|
|
, giflib, libjpeg, libpng, libtiff, libwebp, openjpeg, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "leptonica";
|
|
version = "1.78.0";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.leptonica.org/source/${pname}-${version}.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;
|
|
};
|
|
}
|