Merge pull request #187633 from esclear/fix-utsushi

utsushi/imagescan: Fix scanning
This commit is contained in:
Sandro 2022-09-01 01:08:30 +02:00 committed by GitHub
commit 1a276245b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ in stdenv.mkDerivation rec {
touch $out/etc/sane.d/dll.conf
# absolute paths to convert & tesseract
sed -i '/\[AC_DEFINE(\[HAVE_IMAGE_MAGICK\], \[1\])/a \ MAGICK_CONVERT="${imagemagick}/bin/convert"' configure.ac
substituteInPlace filters/magick.cpp \
--replace 'convert ' '${imagemagick}/bin/convert '
substituteInPlace filters/reorient.cpp \