2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, fetchurl, cmake, imagemagick }:
|
2009-02-09 12:37:11 -08:00
|
|
|
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "cuneiform";
|
2013-01-16 04:43:35 -08:00
|
|
|
version = "1.1.0";
|
2016-01-24 07:50:54 -08:00
|
|
|
|
2017-09-02 09:53:06 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2";
|
|
|
|
sha256 = "1bdvppyfx2184zmzcylskd87cxv56d8f32jf7g1qc8779l2hszjp";
|
2009-02-09 12:37:11 -08:00
|
|
|
};
|
|
|
|
|
2017-09-02 09:53:06 -07:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://git.archlinux.org/svntogit/community.git/plain/cuneiform/trunk/build-fix.patch?id=a2ec92f05de006b56d16ac6a6c370d54a554861a";
|
|
|
|
sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj";
|
|
|
|
})
|
2016-01-24 07:50:54 -08:00
|
|
|
];
|
2009-02-09 12:37:11 -08:00
|
|
|
|
2017-11-08 21:01:37 -08:00
|
|
|
postPatch = ''
|
|
|
|
rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
|
|
|
|
'';
|
|
|
|
|
2017-09-02 09:53:06 -07:00
|
|
|
buildInputs = [ imagemagick ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-09-11 14:22:22 -07:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "Multi-language OCR system";
|
2018-09-11 14:22:22 -07:00
|
|
|
homepage = https://launchpad.net/cuneiform-linux;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.raskin ];
|
2009-02-09 12:37:11 -08:00
|
|
|
};
|
|
|
|
}
|