1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 libsForQt5,
7 zlib,
8 openjpeg,
9 libjpeg_turbo,
10 libpng,
11 libtiff,
12 boost,
13 libcanberra,
14}:
15
16stdenv.mkDerivation rec {
17 pname = "scantailor-universal";
18 version = "0.2.14";
19
20 src = fetchFromGitHub {
21 owner = "trufanov-nok";
22 repo = pname;
23 rev = version;
24 fetchSubmodules = true;
25 hash = "sha256-n8NbokK+U0FAuYXtjRJcxlI1XAmI4hk5zV3sF86hB/s=";
26 };
27
28 buildInputs = [
29 libsForQt5.qtbase
30 zlib
31 libjpeg_turbo
32 libpng
33 libtiff
34 boost
35 libcanberra
36 openjpeg
37 ];
38 nativeBuildInputs = [
39 cmake
40 libsForQt5.wrapQtAppsHook
41 libsForQt5.qttools
42 ];
43
44 meta = with lib; {
45 description = "Interactive post-processing tool for scanned pages";
46 homepage = "https://github.com/trufanov-nok/scantailor";
47 license = licenses.gpl3Plus;
48 maintainers = with maintainers; [ unclamped ];
49 platforms = platforms.unix;
50 mainProgram = "scantailor-universal-cli";
51 };
52}