My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/tools/graphics/cuneiform/default.nix

35 lines
940 B

{ stdenv, fetchurl, cmake, imagemagick }:
stdenv.mkDerivation rec {
pname = "cuneiform";
12 years ago
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";
};
patches = [
(fetchurl {
url = "https://git.archlinux.org/svntogit/community.git/plain/cuneiform/trunk/build-fix.patch?id=a2ec92f05de006b56d16ac6a6c370d54a554861a";
sha256 = "19cmrlx4khn30qqrpyayn7bicg8yi0wpz1x1bvqqrbvr3kwldxyj";
})
];
postPatch = ''
rm cuneiform_src/Kern/hhh/tigerh/h/strings.h
'';
buildInputs = [ imagemagick ];
nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; {
description = "Multi-language OCR system";
homepage = https://launchpad.net/cuneiform-linux;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.raskin ];
};
}