about summary refs log tree commit diff
path: root/pkgs/applications/graphics/deskew
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2022-02-05 21:24:34 +0100
committerGitHub <noreply@github.com>2022-02-05 21:24:34 +0100
commit3de881ec50d3dd4dc34903f6fcd993e0c8cef0e1 (patch)
tree142fa1dc9d3296743c2953bd734d5589880a871b /pkgs/applications/graphics/deskew
parent00089fcaf076fad6146df8e398fbb77f17e48fa5 (diff)
deskew: 1.25 -> 1.30
and update homepage
Diffstat (limited to 'pkgs/applications/graphics/deskew')
-rw-r--r--pkgs/applications/graphics/deskew/default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/applications/graphics/deskew/default.nix b/pkgs/applications/graphics/deskew/default.nix
index 66309ebf7acf8..c19b5de2b69c9 100644
--- a/pkgs/applications/graphics/deskew/default.nix
+++ b/pkgs/applications/graphics/deskew/default.nix
@@ -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;
   };