[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
32/34: gnu: bcachefs-tools: Respect input rewriting.
From: |
guix-commits |
Subject: |
32/34: gnu: bcachefs-tools: Respect input rewriting. |
Date: |
Tue, 18 Jul 2023 21:12:00 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 09c14288cfe3f0017965d503841a938116c3372b
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 16 02:00:00 2023 +0200
gnu: bcachefs-tools: Respect input rewriting.
* gnu/packages/file-systems.scm (bcachefs-tools)[arguments]: Rewrite the
'promote-mount.bcachefs.sh phase to use SEARCH-INPUT-FILE.
---
gnu/packages/file-systems.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 007203ae12..7788acd34e 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -614,16 +614,18 @@ from a mounted file system.")
(add-after 'install 'promote-mount.bcachefs.sh
;; XXX The (optional) ‘mount.bcachefs’ requires rust:cargo.
;; This shell alternative does the job well enough for now.
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
+ (define (whence file)
+ (dirname (search-input-file inputs file)))
(with-directory-excursion (string-append #$output "/sbin")
(rename-file "mount.bcachefs.sh" "mount.bcachefs")
;; WRAP-SCRIPT causes bogus ‘Insufficient arguments’
errors.
(wrap-program "mount.bcachefs"
`("PATH" ":" prefix
- ,(list (string-append #$output "/sbin")
- (string-append #$coreutils-minimal "/bin")
- (string-append #$gawk "/bin")
- (string-append #$util-linux
"/bin"))))))))))
+ ,(list (getcwd)
+ (whence "bin/tail")
+ (whence "bin/awk")
+ (whence "bin/mount"))))))))))
(native-inputs
(append
(list pkg-config
- 16/34: gnu: wireshark: Update to 4.0.7., (continued)
- 16/34: gnu: wireshark: Update to 4.0.7., guix-commits, 2023/07/18
- 17/34: gnu: gcab: Update to 1.6., guix-commits, 2023/07/18
- 18/34: gnu: gcab: Remove input labels., guix-commits, 2023/07/18
- 20/34: gnu: liblxi: Edit description., guix-commits, 2023/07/18
- 21/34: gnu: spread-sheet-widget: Update to 0.8., guix-commits, 2023/07/18
- 22/34: gnu: spread-sheet-widget: Omit static library., guix-commits, 2023/07/18
- 24/34: gnu: hwinfo: Use G-expressions., guix-commits, 2023/07/18
- 28/34: gnu: libqb: Remove obsolete bootstrapping inputs., guix-commits, 2023/07/18
- 27/34: gnu: gifsicle: Update to 1.94., guix-commits, 2023/07/18
- 31/34: gnu: libqb: Tweak description., guix-commits, 2023/07/18
- 32/34: gnu: bcachefs-tools: Respect input rewriting.,
guix-commits <=