diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2019-07-12 15:02:44 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-07-13 23:56:49 -0400 |
commit | ffaa9c8c3f5e6660958483ac77614bbd6179c0d6 (patch) | |
tree | 02414286b8cf4b8c1011e76a1c9a0fbb05a5f6b3 /pkgs/applications/misc/qt-box-editor | |
parent | 9bf7fc99450fa81075436640af68bc97590c037e (diff) | |
download | nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar.gz nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar.bz2 nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar.lz nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar.xz nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.tar.zst nixlib-ffaa9c8c3f5e6660958483ac77614bbd6179c0d6.zip |
qt-box-editor: init at unstable-2019-07-12
latest unstable version is only one to build with tesseract4 and qt5
Diffstat (limited to 'pkgs/applications/misc/qt-box-editor')
-rw-r--r-- | pkgs/applications/misc/qt-box-editor/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/misc/qt-box-editor/default.nix b/pkgs/applications/misc/qt-box-editor/default.nix new file mode 100644 index 000000000000..47b4641234f3 --- /dev/null +++ b/pkgs/applications/misc/qt-box-editor/default.nix @@ -0,0 +1,38 @@ +{ stdenv +, fetchFromGitHub +, qtbase +, qtsvg +, qmake +, leptonica +, tesseract +}: + +stdenv.mkDerivation rec { + pname = "qt-box-editor"; + version = "unstable-2019-07-12"; + + src = fetchFromGitHub { + owner = "zdenop"; + repo = "qt-box-editor"; + rev = "75a68b466868ba41ba2886caa796057403fe1901"; + sha256 = "0zwsyy7cnbhy5aazwlkhd9y8bnzlgy1gffqa46abajn4809b95k3"; + }; + + buildInputs = [ qtbase qtsvg leptonica tesseract ]; + + nativeBuildInputs = [ qmake ]; + + # remove with next release + # https://github.com/zdenop/qt-box-editor/pull/78 + postPatch = '' + printf "INSTALLS += target\ntarget.path = $out/bin" >> qt-box-editor.pro + ''; + + meta = with stdenv.lib; { + description = "Editor of tesseract-ocr box files"; + homepage = https://github.com/zdenop/qt-box-editor; + license = licenses.asl20; + maintainers = [ maintainers.costrouc ]; + platforms = platforms.all; + }; +} |