guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 0da2d7416bcae7e7d5ee472f19e3ebd92883ae65
Author: Artyom V. Poptsov <[email protected]>
AuthorDate: Sun Jun 21 16:15:15 2026 +0300
gnu: direvent: Fix cross-build for riscv64-linux.
* gnu/packages/admin.scm (direvent): Fix cross-build for riscv64-linux.
[arguments]<#:phases>: Use the "/bin/sh" from "bash-minimal" input.
[inputs]: Add bash-minimal.
Change-Id: Id279d63dcaca35cbfe710514d4932c0d6b632373
---
gnu/packages/admin.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 9256fe55fb..b5602096bb 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -3105,10 +3105,10 @@ features of ls(1), find(1), stat(1) and du(1).")
(list #:phases
#~(modify-phases %standard-phases
(add-before 'build 'substitute-file-names
- (lambda* (#:key inputs #:allow-other-keys)
+ (lambda _
;; Use the right shell when executing the watcher and
;; user-provided shell commands.
- (let ((bash (assoc-ref inputs "bash")))
+ (let ((bash #$(this-package-input "bash-minimal")))
(substitute* '("src/direvent.c" "src/progman.c")
(("\"/bin/sh\"")
(string-append "\"" bash "/bin/sh\""))))
@@ -3119,6 +3119,7 @@ features of ls(1), find(1), stat(1) and du(1).")
(string-append prefix (which "sh")))
(("/bin/kill")
(which "kill"))))))))
+ (inputs (list bash-minimal))
(home-page "https://www.gnu.org.ua/software/direvent/")
(synopsis "Daemon to monitor directories for events such as file removal")
(description