From ec65f9cfd908c1ed2adbbc122cce29830627e891 Mon Sep 17 00:00:00 2001 From: unclamped Date: Mon, 16 Oct 2023 19:38:26 -0300 Subject: [PATCH] scantailor-universal: init at 0.2.14 --- .../graphics/scantailor/universal.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/applications/graphics/scantailor/universal.nix diff --git a/pkgs/applications/graphics/scantailor/universal.nix b/pkgs/applications/graphics/scantailor/universal.nix new file mode 100644 index 000000000000..31d5c6ca6570 --- /dev/null +++ b/pkgs/applications/graphics/scantailor/universal.nix @@ -0,0 +1,41 @@ +{ 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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad3a3d781f2f..df6bdea4246c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35199,6 +35199,8 @@ with pkgs; scantailor-advanced = libsForQt5.callPackage ../applications/graphics/scantailor/advanced.nix { }; + scantailor-universal = libsForQt5.callPackage ../applications/graphics/scantailor/universal.nix { }; + sc-im = callPackage ../applications/misc/sc-im { }; scite = callPackage ../applications/editors/scite { };