From bc88f37fcbb91c243eb70f4360b3d88821967722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sun, 24 Apr 2011 18:16:51 +0000 Subject: [PATCH] Adding the leptonica library of image processing and analysis. svn path=/nixpkgs/trunk/; revision=26954 --- .../libraries/leptonica/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/libraries/leptonica/default.nix diff --git a/pkgs/development/libraries/leptonica/default.nix b/pkgs/development/libraries/leptonica/default.nix new file mode 100644 index 000000000000..e5229961b808 --- /dev/null +++ b/pkgs/development/libraries/leptonica/default.nix @@ -0,0 +1,19 @@ +{stdenv, fetchurl, libpng, libtiff, libjpeg, zlib}: + +stdenv.mkDerivation { + name = "leptonica-1.68"; + + src = fetchurl { + url = http://www.leptonica.org/source/leptonica-1.68.tar.gz; + sha256 = "13qzm24zy46bj9b476jxzbw9qh7p96jikfzxg88kz4dj1p2vdvxc"; + }; + + buildInputs = [ libpng libtiff libjpeg zlib ]; + + meta = { + description = "Image processing and analysis library"; + homepage = http://www.leptonica.org/; + # Its own license: http://www.leptonica.org/about-the-license.html + license = "free"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dab14d72becb..85231dc6c3d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3470,6 +3470,8 @@ let levmar = callPackage ../development/libraries/levmar { }; + leptonica = callPackage ../development/libraries/leptonica { }; + lib3ds = callPackage ../development/libraries/lib3ds { }; libaal = callPackage ../development/libraries/libaal { };