nixpkgs/pkgs/applications/graphics/scantailor/advanced.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

28 lines
794 B
Nix

{ lib, fetchFromGitHub, mkDerivation
, cmake, libjpeg, libpng, libtiff, boost
, qtbase, qttools }:
mkDerivation rec {
pname = "scantailor-advanced";
version = "1.0.19";
src = fetchFromGitHub {
owner = "vigri";
repo = "scantailor-advanced";
rev = "v${version}";
sha256 = "sha256-mvoCoYdRTgXW5t8yd9Y9TOl7D3RDVwcjUv2YDUWrtRI=";
};
nativeBuildInputs = [ cmake qttools ];
buildInputs = [ libjpeg libpng libtiff boost qtbase ];
meta = with lib; {
homepage = "https://github.com/vigri/scantailor-advanced";
description = "Interactive post-processing tool for scanned pages (vigri's fork)";
mainProgram = "scantailor";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = with platforms; gnu ++ linux ++ darwin;
};
}