Skip to content

Commit

Permalink
Trying a less disruptive patch for Cuneiform
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c committed Sep 2, 2017
1 parent 522a03c commit 491f5be
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions pkgs/tools/graphics/cuneiform/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{ stdenv, fetchbzr, cmake, patchelf, imagemagick }:
{ stdenv, fetchurl, cmake, patchelf, imagemagick }:

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

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

buildInputs = [
cmake imagemagick
patches = [
(fetchurl {
url = "https://git.archlinux.org/svntogit/community.git/plain/cuneiform/trunk/build-fix.patch?id=a2ec92f05de006b56d16ac6a6c370d54a554861a";
sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj";
})
];

buildInputs = [ imagemagick ];

nativeBuildInputs = [ cmake ];

meta = {
description = "Multi-language OCR system";
platforms = stdenv.lib.platforms.linux;
Expand Down

0 comments on commit 491f5be

Please sign in to comment.