summary refs log tree commit diff
path: root/pkgs/applications/graphics/deskew
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2018-11-25 07:40:41 -0800
committerGitHub <noreply@github.com>2018-11-25 07:40:41 -0800
commitfe551d1d5359abfbdf90fd3f70d2025ac26c7400 (patch)
tree537a5dbd61a930726a371bbd9634c97519090b9a /pkgs/applications/graphics/deskew
parent6a5fff3741007bd51811d09cc4d6235d3fb33186 (diff)
downloadnixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar.gz
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar.bz2
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar.lz
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar.xz
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.tar.zst
nixpkgs-fe551d1d5359abfbdf90fd3f70d2025ac26c7400.zip
deskew: init at 1.25
* deskew: init at 1.25

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

Co-Authored-By: ryantm <ryan@ryantm.com>
Diffstat (limited to 'pkgs/applications/graphics/deskew')
-rw-r--r--pkgs/applications/graphics/deskew/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/deskew/default.nix b/pkgs/applications/graphics/deskew/default.nix
new file mode 100644
index 00000000000..71e2d82ea7c
--- /dev/null
+++ b/pkgs/applications/graphics/deskew/default.nix
@@ -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;
+  };
+
+}