nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 mkDerivation, 3 lib, 4 fetchFromGitHub, 5 qtbase, 6 qtsvg, 7 qmake, 8 leptonica, 9 tesseract4, 10}: 11 12mkDerivation { 13 pname = "qt-box-editor"; 14 version = "unstable-2019-07-14"; 15 16 src = fetchFromGitHub { 17 owner = "zdenop"; 18 repo = "qt-box-editor"; 19 rev = "cba2929dabc6c715acd1a282ba161fee914c87f6"; 20 hash = "sha256-3dWnAu0CLO3atjbC1zJEnL3vzsIEecDDDhW3INMfCv4="; 21 }; 22 23 buildInputs = [ 24 qtbase 25 qtsvg 26 leptonica 27 tesseract4 28 ]; 29 30 nativeBuildInputs = [ qmake ]; 31 32 # https://github.com/zdenop/qt-box-editor/issues/87 33 postPatch = '' 34 sed -i '/allheaders.h/a#include <leptonica/pix_internal.h>' src/TessTools.h 35 36 substituteInPlace qt-box-editor.pro \ 37 --replace '-llept' '-lleptonica' 38 ''; 39 40 meta = with lib; { 41 description = "Editor of tesseract-ocr box files"; 42 mainProgram = "qt-box-editor-1.12rc1"; 43 homepage = "https://github.com/zdenop/qt-box-editor"; 44 license = licenses.asl20; 45 maintainers = [ maintainers.costrouc ]; 46 platforms = platforms.all; 47 }; 48}