summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2020-11-05 21:46:29 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2020-11-29 17:28:39 +0100
commit16611d1c95d78bb87ccca84ba806a4d279233dfb (patch)
treea22eece9ec37f88f3355fb7be489c0b4fc49258a /gnu
parent7c5f064277f5841a3c8d50e621a243d000055d20 (diff)
gnu: Add bcachefs-static.
* gnu/packages/file-systems.scm (bcachefs/static): New public variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/file-systems.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index 8c382a0aec7..7ace103a8eb 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -404,6 +404,37 @@ performance and other characteristics.")
404 ("zstd:static" ,zstd "static") 404 ("zstd:static" ,zstd "static")
405 ,@(package-inputs bcachefs-tools))))) 405 ,@(package-inputs bcachefs-tools)))))
406 406
407(define-public bcachefs/static
408 (package
409 (name "bcachefs-static")
410 (version (package-version bcachefs-tools))
411 (build-system trivial-build-system)
412 (source #f)
413 (inputs
414 `(("bcachefs-tools" ,bcachefs-tools/static)))
415 (arguments
416 `(#:modules ((guix build utils))
417 #:builder
418 (begin
419 (use-modules (guix build utils)
420 (ice-9 ftw)
421 (srfi srfi-26))
422 (let* ((bcachefs-tools (assoc-ref %build-inputs "bcachefs-tools"))
423 (out (assoc-ref %outputs "out")))
424 (mkdir-p out)
425 (with-directory-excursion out
426 (install-file (string-append bcachefs-tools
427 "/sbin/bcachefs")
428 "sbin")
429 (remove-store-references "sbin/bcachefs")
430 (invoke "sbin/bcachefs" "version") ; test suite
431 #t)))))
432 (home-page (package-home-page bcachefs-tools))
433 (synopsis "Statically-linked bcachefs command from bcachefs-tools")
434 (description "This package provides the statically-linked @command{bcachefs}
435from the bcachefs-tools package. It is meant to be used in initrds.")
436 (license (package-license bcachefs-tools))))
437
407(define-public exfatprogs 438(define-public exfatprogs
408 (package 439 (package
409 (name "exfatprogs") 440 (name "exfatprogs")