me
/
guix
Archived
1
0
Fork 0

gnu: Add xfsprogs-static.

* gnu/packages/linux.scm (xfsprogs/static): New public variable.
master
Tobias Geerinckx-Rice 2021-09-22 22:52:55 +02:00
parent bea4a3abec
commit 2b260efbfc
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 25 additions and 0 deletions

View File

@ -7731,6 +7731,31 @@ file systems.")
;; licensed under lgpl2.1. the other stuff is licensed under gpl2.
(license (list license:gpl2 license:lgpl2.1))))
(define-public xfsprogs/static
(package
(inherit xfsprogs)
(name "xfsprogs-static")
(outputs (list "out"))
(arguments
(substitute-keyword-arguments (package-arguments xfsprogs)
((#:make-flags make-flags ''())
`(cons* "LLDFLAGS=-all-static" ,make-flags))
((#:phases _ ''())
`(modify-phases %standard-phases
(add-after 'install 'delete-useless-files
(lambda* (#:key outputs #:allow-other-keys)
(with-directory-excursion (assoc-ref outputs "out")
(for-each delete-file-recursively
(list "include" "lib")))))))))
(inputs
`(("libinih:static" ,libinih "static")
("util-linux:static" ,util-linux "static")
,@(remove (match-lambda
((label . _)
(member label '("python"))))
(package-inputs xfsprogs))))
(synopsis "Statically linked XFS file system tools")))
(define-public genext2fs
(package
(name "genext2fs")