mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
gnu: Add f2fs-fsck-static.
* gnu/packages/linux.scm (f2fs-fsck/static): New public variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
17adb70f78
commit
a5cf52d3aa
1 changed files with 32 additions and 0 deletions
|
@ -4633,6 +4633,38 @@ (define (append-to-file name body)
|
||||||
`(("libuuid:static" ,util-linux "static")
|
`(("libuuid:static" ,util-linux "static")
|
||||||
("libuuid" ,util-linux)))))) ; for include files
|
("libuuid" ,util-linux)))))) ; for include files
|
||||||
|
|
||||||
|
(define-public f2fs-fsck/static
|
||||||
|
(package
|
||||||
|
(name "f2fs-fsck-static")
|
||||||
|
(version (package-version f2fs-tools/static))
|
||||||
|
(source #f)
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-26))
|
||||||
|
(let* ((f2fs-tools (assoc-ref %build-inputs "f2fs-tools-static"))
|
||||||
|
(fsck "fsck.f2fs")
|
||||||
|
(out (assoc-ref %outputs "out"))
|
||||||
|
(sbin (string-append out "/sbin")))
|
||||||
|
(mkdir-p sbin)
|
||||||
|
(with-directory-excursion sbin
|
||||||
|
(install-file (string-append f2fs-tools "/sbin/" fsck)
|
||||||
|
".")
|
||||||
|
(remove-store-references fsck)
|
||||||
|
(chmod fsck #o555))
|
||||||
|
#t))))
|
||||||
|
(inputs
|
||||||
|
`(("f2fs-tools-static" ,f2fs-tools/static)))
|
||||||
|
(home-page (package-home-page f2fs-tools/static))
|
||||||
|
(synopsis "Statically-linked fsck.f2fs command from f2fs-tools")
|
||||||
|
(description "This package provides statically-linked fsck.f2fs command taken
|
||||||
|
from the f2fs-tools package. It is meant to be used in initrds.")
|
||||||
|
(license (package-license f2fs-tools/static))))
|
||||||
|
|
||||||
(define-public freefall
|
(define-public freefall
|
||||||
(package
|
(package
|
||||||
(name "freefall")
|
(name "freefall")
|
||||||
|
|
Loading…
Reference in a new issue