Skip to content
/ nixpkgs Public
forked from NixOS/nixpkgs

Commit

Permalink
gscan2pdf: fix build failures
Browse files Browse the repository at this point in the history
Due to the removal of tools like `tiff2pdf` from `libtiff`
many tests fail or cause a timeout.
This commit fixes the dependency to `libtiff_4_5`.

fixes NixOS#268406

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
  • Loading branch information
gador committed Nov 23, 2023
1 parent cebd3d5 commit 9a579e1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkgs/applications/graphics/gscan2pdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# libs
librsvg, sane-backends, sane-frontends,
# runtime dependencies
imagemagick, libtiff, djvulibre, poppler_utils, ghostscript, unpaper, pdftk,
imagemagick, libtiff_4_5, djvulibre, poppler_utils, ghostscript, unpaper, pdftk,
# test dependencies
xvfb-run, liberation_ttf, file, tesseract }:

Expand Down Expand Up @@ -71,7 +71,7 @@ perlPackages.buildPerlPackage rec {
wrapProgram "$out/bin/gscan2pdf" \
--prefix PATH : "${sane-backends}/bin" \
--prefix PATH : "${imagemagick}/bin" \
--prefix PATH : "${libtiff}/bin" \
--prefix PATH : "${libtiff_4_5}/bin" \
--prefix PATH : "${djvulibre}/bin" \
--prefix PATH : "${poppler_utils}/bin" \
--prefix PATH : "${ghostscript}/bin" \
Expand All @@ -87,7 +87,10 @@ perlPackages.buildPerlPackage rec {

nativeCheckInputs = [
imagemagick
libtiff
# Needs older libtiff version, because it stopped packageing tools like
# tiff2pdf and others in version 4.6. These tools are necessary for gscan2pdf.
# See commit f57a4b0ac1b954eec0c8def2a99e2a464ac6ff7a for in-depth explanation.
libtiff_4_5
djvulibre
poppler_utils
ghostscript
Expand Down

0 comments on commit 9a579e1

Please sign in to comment.