Merge pull request #158275 from c0bw3b/pkg/deskew

deskew: 1.25 -> 1.30
This commit is contained in:
Renaud 2022-02-09 20:11:01 +01:00 committed by GitHub
commit b8057bf3ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,33 +3,35 @@
stdenv.mkDerivation rec {
pname = "deskew";
version = "1.25";
version = "1.30";
src = fetchFromGitHub {
owner = "galfar";
repo = pname;
rev = "v${version}";
sha256 = "0zjjj66qhgqkmfxl3q7p78dv4xl4ci918pgl4d5259pqdj1bfgc8";
hash = "sha256-xghVOEMkQ/mXpOzJqMaT3SII7xneMNoFqRlqjtzmDnA=";
};
nativeBuildInputs = [ fpc ];
buildInputs = [ libtiff ];
buildPhase = ''
rm -r Bin # Remove pre-compiled binary
mkdir Bin
chmod +x compile.sh
./compile.sh
runHook preBuild
patchShebangs ./Scripts
pushd Scripts && ./compile.sh && popd
runHook postBuild
'';
installPhase = ''
install -Dt $out/bin Bin/*
runHook preInstall
install -Dt $out/bin Bin/deskew
runHook postInstall
'';
meta = with lib; {
description = "A command line tool for deskewing scanned text documents";
homepage = "https://bitbucket.org/galfar/app-deskew/overview";
license = licenses.mit;
homepage = "https://galfar.vevb.net/deskew";
license = with licenses; [ mit mpl11 ];
maintainers = with maintainers; [ryantm];
platforms = platforms.all;
};