python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / qt-box-editor / default.nix
blob9480a32aae3d33add2a83426e6c092a69236df0f
1 { mkDerivation
2 , lib
3 , fetchFromGitHub
4 , qtbase
5 , qtsvg
6 , qmake
7 , leptonica
8 , tesseract
9 }:
11 mkDerivation {
12   pname = "qt-box-editor";
13   version = "unstable-2019-07-12";
15   src = fetchFromGitHub {
16     owner = "zdenop";
17     repo = "qt-box-editor";
18     rev = "75a68b466868ba41ba2886caa796057403fe1901";
19     sha256 = "0zwsyy7cnbhy5aazwlkhd9y8bnzlgy1gffqa46abajn4809b95k3";
20   };
22   buildInputs = [ qtbase qtsvg leptonica tesseract ];
24   nativeBuildInputs = [ qmake ];
26   # remove with next release
27   # https://github.com/zdenop/qt-box-editor/pull/78
28   postPatch = ''
29     printf "INSTALLS += target\ntarget.path = $out/bin" >>  qt-box-editor.pro
30   '';
32   meta = with lib; {
33     description = "Editor of tesseract-ocr box files";
34     homepage = "https://github.com/zdenop/qt-box-editor";
35     license = licenses.asl20;
36     maintainers = [ maintainers.costrouc ];
37     platforms = platforms.all;
38   };