Skip to content

Commit

Permalink
cuneiform: use the branch with fresh fixes to fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Aug 28, 2017
1 parent 03b08fc commit 48a941e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/tools/graphics/cuneiform/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ stdenv, fetchurl, cmake, patchelf, imagemagick }:
{ stdenv, fetchbzr, cmake, patchelf, imagemagick }:

stdenv.mkDerivation rec {
name = "cuneiform-${version}";
version = "1.1.0";

src = fetchurl {
url = "https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2";
sha256 = "1bdvppyfx2184zmzcylskd87cxv56d8f32jf7g1qc8779l2hszjp";
src = fetchbzr {
url = "lp:~f0ma/cuneiform-linux/devel";
rev = "540";
sha256 = "0sj7v3plf2rrc2vzxl946h9yfribc0jfn4b3ffppghxk2g6kicsb";
};

buildInputs = [
Expand Down

3 comments on commit 48a941e

@aszlig
Copy link
Member

@aszlig aszlig commented on 48a941e Sep 2, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@7c6f434c: What about using https://git.archlinux.org/svntogit/community.git/plain/trunk/build-fix.patch?h=packages/cuneiform instead? The version you're using here has an experimental CLI which is pretty much broken. For example cuneiform --show-langs will bail out with the following despite listing --show-langs in its usage:

File not found: --show-langs
Cuneiform command line interface 1.2.0-ocelot
Usage: result/bin/cuneiform [options] imagefile [imagefile ...]
Options: 
-h / --help             Show this message
-l / --language Set regonition language
--show-langs    Show regonition languages list
-f / --format   Set output file format (text, smarttext, hocr, html)
-o / --output           Output file name
-d / --dpi              Input file dpi
-v / --verbose          Show recognition details
--datafiles             Set path to Cuneiform DataFiles
--dotmatrix             Вetter regonition for matrix printer images
--fax           Better regonition for fax images
--singlecolumn          Disable columns search
--no-multipage          Prevent to load multipage image

I was preparing a patch for pyocr until I realized that first of all, this actually reports version 1.2.0 and it is also considered experimental, quoting http://bazaar.launchpad.net/~f0ma/cuneiform-linux/devel/revision/540:

New command line interface with multipage support and input image filtering.
Alpha state. No checks for build in other platform. Tests is missing.
Magick++ and C++0x is requried.

@7c6f434c
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to find a live upstream… and failed, apparently — sorry

@7c6f434c
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to that patch

Please sign in to comment.