mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
commit
b8057bf3ba
@ -3,33 +3,35 @@
|
|||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
pname = "deskew";
|
pname = "deskew";
|
||||||
version = "1.25";
|
version = "1.30";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "galfar";
|
owner = "galfar";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0zjjj66qhgqkmfxl3q7p78dv4xl4ci918pgl4d5259pqdj1bfgc8";
|
hash = "sha256-xghVOEMkQ/mXpOzJqMaT3SII7xneMNoFqRlqjtzmDnA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ fpc ];
|
nativeBuildInputs = [ fpc ];
|
||||||
buildInputs = [ libtiff ];
|
buildInputs = [ libtiff ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
rm -r Bin # Remove pre-compiled binary
|
runHook preBuild
|
||||||
mkdir Bin
|
patchShebangs ./Scripts
|
||||||
chmod +x compile.sh
|
pushd Scripts && ./compile.sh && popd
|
||||||
./compile.sh
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -Dt $out/bin Bin/*
|
runHook preInstall
|
||||||
|
install -Dt $out/bin Bin/deskew
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A command line tool for deskewing scanned text documents";
|
description = "A command line tool for deskewing scanned text documents";
|
||||||
homepage = "https://bitbucket.org/galfar/app-deskew/overview";
|
homepage = "https://galfar.vevb.net/deskew";
|
||||||
license = licenses.mit;
|
license = with licenses; [ mit mpl11 ];
|
||||||
maintainers = with maintainers; [ryantm];
|
maintainers = with maintainers; [ryantm];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user