From c65098345739ccaccb293a5d7976fecc6b3d7beb Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 18 Aug 2024 02:00:00 +0200 Subject: [PATCH] gnu: xsane: Fix cross-compilation. * gnu/packages/scanner.scm (xsane)[arguments]: Use SEARCH-INPUT-FILE. Change-Id: I4c4423cf1808f5934d97fd20bf25ac074d5617b2 --- gnu/packages/scanner.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index e3fdf426db..a2faaa2728 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -421,9 +421,9 @@ (define-public xsane (substitute* "src/xsane-save.c" (("png_ptr->jmpbuf") "png_jmpbuf(png_ptr)")))) (add-after 'unpack 'use-sane-help-browser - (lambda _ + (lambda* (#:key inputs #:allow-other-keys) (substitute* "src/xsane.h" - (("netscape") (which "xdg-open"))))) + (("netscape") (search-input-file inputs "bin/xdg-open"))))) (add-after 'install 'delete-empty-/sbin (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))