mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
42 lines
914 B
Nix
42 lines
914 B
Nix
{ lib
|
|
, stdenv
|
|
, mkDerivation
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, qtbase
|
|
, qttools
|
|
, wrapQtAppsHook
|
|
, zlib
|
|
, openjpeg
|
|
, libjpeg_turbo
|
|
, libpng
|
|
, libtiff
|
|
, boost
|
|
, libcanberra
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "scantailor-universal";
|
|
version = "0.2.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trufanov-nok";
|
|
repo = pname;
|
|
rev = version;
|
|
fetchSubmodules = true;
|
|
hash = "sha256-n8NbokK+U0FAuYXtjRJcxlI1XAmI4hk5zV3sF86hB/s=";
|
|
};
|
|
|
|
buildInputs = [ qtbase zlib libjpeg_turbo libpng libtiff boost libcanberra openjpeg ];
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook qttools ];
|
|
|
|
meta = with lib; {
|
|
description = "Interactive post-processing tool for scanned pages";
|
|
homepage = "https://github.com/trufanov-nok/scantailor";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ unclamped ];
|
|
platforms = platforms.unix;
|
|
mainProgram = "scantailor-universal-cli";
|
|
};
|
|
}
|