3
0
Fork 0
forked from mirrors/nixpkgs

deskew: init at 1.25

* deskew: init at 1.25

* Update pkgs/applications/graphics/deskew/default.nix

Co-Authored-By: ryantm <ryan@ryantm.com>
This commit is contained in:
Ryan Mulligan 2018-11-25 07:40:41 -08:00 committed by GitHub
parent 6a5fff3741
commit fe551d1d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchFromBitbucket, libtiff, fpc }:
stdenv.mkDerivation rec {
name = "deskew-${version}";
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";
homepage = https://bitbucket.org/galfar/app-deskew/overview;
license = licenses.mit;
maintainers = with maintainers; [ryantm];
platforms = platforms.all;
};
}

View file

@ -681,6 +681,8 @@ with pkgs;
cozy = callPackage ../applications/audio/cozy-audiobooks { };
deskew = callPackage ../applications/graphics/deskew { };
diskus = callPackage ../tools/misc/diskus { };
djmount = callPackage ../tools/filesystems/djmount { };