gnu: xsane: Fix cross-compilation.

* gnu/packages/scanner.scm (xsane)[arguments]: Use SEARCH-INPUT-FILE.

Change-Id: I4c4423cf1808f5934d97fd20bf25ac074d5617b2
This commit is contained in:
Tobias Geerinckx-Rice 2024-08-18 02:00:00 +02:00
parent e12c377ed1
commit c650983457
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -421,9 +421,9 @@ (define-public xsane
(substitute* "src/xsane-save.c" (substitute* "src/xsane-save.c"
(("png_ptr->jmpbuf") "png_jmpbuf(png_ptr)")))) (("png_ptr->jmpbuf") "png_jmpbuf(png_ptr)"))))
(add-after 'unpack 'use-sane-help-browser (add-after 'unpack 'use-sane-help-browser
(lambda _ (lambda* (#:key inputs #:allow-other-keys)
(substitute* "src/xsane.h" (substitute* "src/xsane.h"
(("netscape") (which "xdg-open"))))) (("netscape") (search-input-file inputs "bin/xdg-open")))))
(add-after 'install 'delete-empty-/sbin (add-after 'install 'delete-empty-/sbin
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))