2018-11-25 16:40:41 +01:00
|
|
|
{ stdenv, fetchFromBitbucket, libtiff, fpc }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "deskew";
|
2018-11-25 16:40:41 +01:00
|
|
|
version = "1.25";
|
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "galfar";
|
|
|
|
repo = "app-deskew";
|
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://bitbucket.org/galfar/app-deskew/overview";
|
2018-11-25 16:40:41 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ryantm];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|