|
|
|
@ -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; |
|
|
|
|
}; |
|
|
|
|