me
/
guix
Archived
1
0
Fork 0

gnu: bcachefs/static: Use G-expressions.

* gnu/packages/file-systems.scm (bcachefs/static)[arguments]:
Rewrite as G-expressions.
[inputs]: Remove labels.
master
Tobias Geerinckx-Rice 2021-12-29 02:53:24 +01:00
parent 1a6ca06827
commit b37ba3747a
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 17 additions and 19 deletions

View File

@ -515,27 +515,25 @@ performance and other characteristics.")
(package (package
(name "bcachefs-static") (name "bcachefs-static")
(version (package-version bcachefs-tools)) (version (package-version bcachefs-tools))
(build-system trivial-build-system)
(source #f) (source #f)
(inputs (build-system trivial-build-system)
`(("bcachefs-tools" ,bcachefs-tools/static)))
(arguments (arguments
`(#:modules ((guix build utils)) (list #:modules '((guix build utils))
#:builder #:builder
(begin #~(begin
(use-modules (guix build utils) (use-modules (guix build utils)
(ice-9 ftw) (ice-9 ftw)
(srfi srfi-26)) (srfi srfi-26))
(let* ((bcachefs-tools (assoc-ref %build-inputs "bcachefs-tools")) (mkdir-p #$output)
(out (assoc-ref %outputs "out"))) (with-directory-excursion #$output
(mkdir-p out) (install-file (string-append #$(this-package-input
(with-directory-excursion out "bcachefs-tools-static")
(install-file (string-append bcachefs-tools
"/sbin/bcachefs") "/sbin/bcachefs")
"sbin") "sbin")
(remove-store-references "sbin/bcachefs") (remove-store-references "sbin/bcachefs")
(invoke "sbin/bcachefs" "version") ; test suite (invoke "sbin/bcachefs" "version"))))) ; test suite
#t))))) (inputs
(list bcachefs-tools/static))
(home-page (package-home-page bcachefs-tools)) (home-page (package-home-page bcachefs-tools))
(synopsis "Statically-linked bcachefs command from bcachefs-tools") (synopsis "Statically-linked bcachefs command from bcachefs-tools")
(description "This package provides the statically-linked @command{bcachefs} (description "This package provides the statically-linked @command{bcachefs}