gnu: Add bcachefs-static.
* gnu/packages/file-systems.scm (bcachefs/static): New public variable.master
parent
7c5f064277
commit
16611d1c95
|
@ -404,6 +404,37 @@ performance and other characteristics.")
|
||||||
("zstd:static" ,zstd "static")
|
("zstd:static" ,zstd "static")
|
||||||
,@(package-inputs bcachefs-tools)))))
|
,@(package-inputs bcachefs-tools)))))
|
||||||
|
|
||||||
|
(define-public bcachefs/static
|
||||||
|
(package
|
||||||
|
(name "bcachefs-static")
|
||||||
|
(version (package-version bcachefs-tools))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(source #f)
|
||||||
|
(inputs
|
||||||
|
`(("bcachefs-tools" ,bcachefs-tools/static)))
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-26))
|
||||||
|
(let* ((bcachefs-tools (assoc-ref %build-inputs "bcachefs-tools"))
|
||||||
|
(out (assoc-ref %outputs "out")))
|
||||||
|
(mkdir-p out)
|
||||||
|
(with-directory-excursion out
|
||||||
|
(install-file (string-append bcachefs-tools
|
||||||
|
"/sbin/bcachefs")
|
||||||
|
"sbin")
|
||||||
|
(remove-store-references "sbin/bcachefs")
|
||||||
|
(invoke "sbin/bcachefs" "version") ; test suite
|
||||||
|
#t)))))
|
||||||
|
(home-page (package-home-page bcachefs-tools))
|
||||||
|
(synopsis "Statically-linked bcachefs command from bcachefs-tools")
|
||||||
|
(description "This package provides the statically-linked @command{bcachefs}
|
||||||
|
from the bcachefs-tools package. It is meant to be used in initrds.")
|
||||||
|
(license (package-license bcachefs-tools))))
|
||||||
|
|
||||||
(define-public exfatprogs
|
(define-public exfatprogs
|
||||||
(package
|
(package
|
||||||
(name "exfatprogs")
|
(name "exfatprogs")
|
||||||
|
|
Reference in New Issue