2020-11-24 20:58:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libtiff, fpc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "deskew";
|
|
|
|
version = "1.25";
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "galfar";
|
2020-11-24 20:58:05 +00:00
|
|
|
repo = pname;
|
2020-04-24 23:36:52 +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/*
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A command line tool for deskewing scanned text documents";
|
|
|
|
homepage = "https://bitbucket.org/galfar/app-deskew/overview";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ryantm];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|