1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

gscan2pdf: 2.3.0 -> 2.5.5

This commit is contained in:
pacien 2019-08-19 08:07:14 +02:00 committed by Matthieu Coudron
parent d022202b73
commit 187f634953

View file

@ -1,17 +1,20 @@
{ stdenv, fetchurl, perlPackages, wrapGAppsHook,
# libs
librsvg, sane-backends, sane-frontends,
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper,
xvfb_run, hicolor-icon-theme, liberation_ttf, file, pdftk }:
# runtime dependencies
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper, pdftk,
# test dependencies
xvfb_run, liberation_ttf, file, tesseract }:
with stdenv.lib;
perlPackages.buildPerlPackage rec {
pname = "gscan2pdf";
version = "2.3.0";
version = "2.5.5";
src = fetchurl {
url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
sha256 = "0mcsmly0j9pmyzh6py8r6sfa30hc6gv300hqq3dxj4hv653vhkk9";
sha256 = "0gfhjmv768hx2l3jk2mjhh1snkgkaddgw70s14jq8kxhhzvhlmv8";
};
nativeBuildInputs = [ wrapGAppsHook ];
@ -66,7 +69,8 @@ perlPackages.buildPerlPackage rec {
--prefix PATH : "${djvulibre}/bin" \
--prefix PATH : "${poppler_utils}/bin" \
--prefix PATH : "${ghostscript}/bin" \
--prefix PATH : "${unpaper}/bin"
--prefix PATH : "${unpaper}/bin" \
--prefix PATH : "${pdftk}/bin"
'';
enableParallelBuilding = true;
@ -76,16 +80,17 @@ perlPackages.buildPerlPackage rec {
outputs = [ "out" "man" ];
checkInputs = [
xvfb_run
hicolor-icon-theme
imagemagick
libtiff
djvulibre
poppler_utils
ghostscript
file
pdftk
unpaper
pdftk
xvfb_run
file
tesseract # tests are expecting tesseract 3.x precisely
];
checkPhase = ''
@ -97,7 +102,6 @@ perlPackages.buildPerlPackage rec {
description = "A GUI to produce PDFs or DjVus from scanned documents";
homepage = http://gscan2pdf.sourceforge.net/;
license = licenses.gpl3;
maintainers = [ maintainers.pacien ];
maintainers = with maintainers; [ pacien ];
};
}