mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: Add btrfs-progs/static.
* gnu/packages/linux.scm (btrfs-progs/static): New variable.
This commit is contained in:
parent
ab4e939c50
commit
f3e44f5cd0
1 changed files with 30 additions and 0 deletions
|
@ -2746,6 +2746,36 @@ (define-public btrfs-progs
|
||||||
;; GPL2: Everything else.
|
;; GPL2: Everything else.
|
||||||
(license (list license:gpl2 license:gpl2+))))
|
(license (list license:gpl2 license:gpl2+))))
|
||||||
|
|
||||||
|
(define-public btrfs-progs/static
|
||||||
|
(package
|
||||||
|
(name "btrfs-progs-static")
|
||||||
|
(version (package-version btrfs-progs))
|
||||||
|
(source #f)
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(inputs
|
||||||
|
`(("btrfs-progs:static" ,btrfs-progs "static")))
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-26))
|
||||||
|
|
||||||
|
(let* ((btrfs (assoc-ref %build-inputs "btrfs-progs:static"))
|
||||||
|
(out (assoc-ref %outputs "out"))
|
||||||
|
(source (string-append btrfs "/bin/btrfs.static"))
|
||||||
|
(target (string-append out "/bin/btrfs")))
|
||||||
|
(mkdir-p (dirname target))
|
||||||
|
(copy-file source target)
|
||||||
|
(remove-store-references target)
|
||||||
|
(chmod target #o555)))))
|
||||||
|
(home-page (package-home-page btrfs-progs))
|
||||||
|
(synopsis "Statically-linked btrfs command from btrfsprogs")
|
||||||
|
(description "This package provides statically-linked command of btrfs taken
|
||||||
|
from the btrfsprogs package. It is meant to be used in initrds.")
|
||||||
|
(license (package-license btrfs-progs))))
|
||||||
|
|
||||||
(define-public freefall
|
(define-public freefall
|
||||||
(package
|
(package
|
||||||
(name "freefall")
|
(name "freefall")
|
||||||
|
|
Loading…
Reference in a new issue