gnu: bcachefs-static: Don't rely on input labels.

* gnu/packages/file-systems.scm (bcachefs/static)[arguments]: Substitute
SEARCH-INPUT-FILE for THIS-PACKAGE-INPUT.

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

View file

@ -723,14 +723,10 @@ (define-public bcachefs/static
#:builder
#~(begin
(use-modules (guix build utils))
(mkdir-p #$output)
(with-directory-excursion #$output
(install-file (string-append #$(this-package-input
"bcachefs-tools-static")
"/sbin/bcachefs")
"sbin")
(remove-store-references "sbin/bcachefs")
(invoke "sbin/bcachefs" "version"))))) ; test suite
(let ((target (string-append #$output "/sbin/bcachefs")))
(install-file (search-input-file %build-inputs "sbin/bcachefs")
(dirname target))
(remove-store-references target)))))
(inputs
(list bcachefs-tools/static))
(home-page (package-home-page bcachefs-tools/static))