@@ -3,33 +3,35 @@
33stdenv.mkDerivation rec {
44
55 pname = "deskew";
6− version = "1.25";
6+ version = "1.30";
77
88 src = fetchFromGitHub {
99 owner = "galfar";
1010 repo = pname;
1111 rev = "v${version}";
12− sha256 = "0zjjj66qhgqkmfxl3q7p78dv4xl4ci918pgl4d5259pqdj1bfgc8";
12+ hash = "sha256-xghVOEMkQ/mXpOzJqMaT3SII7xneMNoFqRlqjtzmDnA=";
1313 };
1414
1515 nativeBuildInputs = [ fpc ];
1616 buildInputs = [ libtiff ];
1717
1818 buildPhase = ''
19− rm -r Bin # Remove pre-compiled binary
20− mkdir Bin
21− chmod +x compile.sh
22− ./compile.sh
19+ runHook preBuild
20+ patchShebangs ./Scripts
21+ pushd Scripts && ./compile.sh && popd
22+ runHook postBuild
2323 '';
2424
2525 installPhase = ''
26− install -Dt $out/bin Bin/*
26+ runHook preInstall
27+ install -Dt $out/bin Bin/deskew
28+ runHook postInstall
2729 '';
2830
2931 meta = with lib; {
3032 description = "A command line tool for deskewing scanned text documents";
31− homepage = "https://bitbucket.org/galfar/app-deskew/overview";
32− license = licenses.mit;
33+ homepage = "https://galfar.vevb.net/deskew";
34+ license = with licenses; [ mit mpl11 ];
3335 maintainers = with maintainers; [ryantm];
3436 platforms = platforms.all;
3537 };