3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/cuneiform/default.nix

33 lines
876 B
Nix
Raw Normal View History

{ stdenv, fetchurl, cmake, imagemagick }:
2016-01-24 15:50:54 +00:00
stdenv.mkDerivation rec {
name = "cuneiform-${version}";
2013-01-16 12:43:35 +00:00
version = "1.1.0";
2016-01-24 15:50:54 +00:00
src = fetchurl {
url = "https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2";
sha256 = "1bdvppyfx2184zmzcylskd87cxv56d8f32jf7g1qc8779l2hszjp";
};
patches = [
(fetchurl {
url = "https://git.archlinux.org/svntogit/community.git/plain/cuneiform/trunk/build-fix.patch?id=a2ec92f05de006b56d16ac6a6c370d54a554861a";
sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj";
})
2016-01-24 15:50:54 +00:00
];
postPatch = ''
rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
'';
buildInputs = [ imagemagick ];
nativeBuildInputs = [ cmake ];
meta = {
description = "Multi-language OCR system";
platforms = stdenv.lib.platforms.linux;
2017-08-28 22:12:15 +01:00
maintainers = with stdenv.lib.maintainers; [raskin];
};
}