2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libtiff, fpc }:
|
2018-11-25 15:40:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "deskew";
|
2018-11-25 15:40:41 +00:00
|
|
|
version = "1.25";
|
|
|
|
|
2020-11-18 14:37:57 +00:00
|
|
|
src = fetchFromGitHub {
|
2018-11-25 15:40:41 +00:00
|
|
|
owner = "galfar";
|
2020-11-18 14:37:57 +00:00
|
|
|
repo = pname;
|
2018-11-25 15:40:41 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0zjjj66qhgqkmfxl3q7p78dv4xl4ci918pgl4d5259pqdj1bfgc8";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ fpc ];
|
|
|
|
buildInputs = [ libtiff ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
rm -r Bin # Remove pre-compiled binary
|
|
|
|
mkdir Bin
|
|
|
|
chmod +x compile.sh
|
|
|
|
./compile.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dt $out/bin Bin/*
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-25 15:40:41 +00:00
|
|
|
description = "A command line tool for deskewing scanned text documents";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://bitbucket.org/galfar/app-deskew/overview";
|
2018-11-25 15:40:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ryantm];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|