1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 libsForQt5,
7 libjpeg,
8 libpng,
9 libtiff,
10 boost,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "scantailor-advanced";
15 version = "1.0.19";
16
17 src = fetchFromGitHub {
18 owner = "vigri";
19 repo = "scantailor-advanced";
20 rev = "v${version}";
21 sha256 = "sha256-mvoCoYdRTgXW5t8yd9Y9TOl7D3RDVwcjUv2YDUWrtRI=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 libsForQt5.wrapQtAppsHook
27 libsForQt5.qttools
28 ];
29 buildInputs = [
30 libjpeg
31 libpng
32 libtiff
33 boost
34 libsForQt5.qtbase
35 ];
36
37 meta = with lib; {
38 homepage = "https://github.com/vigri/scantailor-advanced";
39 description = "Interactive post-processing tool for scanned pages (vigri's fork)";
40 mainProgram = "scantailor";
41 license = licenses.gpl3Plus;
42 maintainers = [ ];
43 platforms = with platforms; gnu ++ linux ++ darwin;
44 };
45}