mirror of https://codeberg.org/hako/Rosenthal.git
* rosenthal/packages/busybox.scm: New file. (busybox/static): New variable.wip/index/refs/heads/trunk
parent
dd0b4c69d1
commit
6c9c8abcae
1 changed files with 28 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||||||
|
;; SPDX-FileCopyrightText: 2022 Hilton Chain <hako@ultrarare.space> |
||||||
|
;; |
||||||
|
;; SPDX-License-Identifier: GPL-3.0-or-later |
||||||
|
|
||||||
|
(define-module (rosenthal packages busybox) |
||||||
|
#:use-module (guix gexp) |
||||||
|
#:use-module (guix packages) |
||||||
|
#:use-module (guix utils) |
||||||
|
#:use-module (gnu packages busybox)) |
||||||
|
|
||||||
|
(define-public busybox/static |
||||||
|
(let ((base busybox)) |
||||||
|
(package |
||||||
|
(inherit base) |
||||||
|
(name "busybox-static") |
||||||
|
(arguments |
||||||
|
(substitute-keyword-arguments (package-arguments base) |
||||||
|
((#:phases phases) |
||||||
|
#~(modify-phases #$phases |
||||||
|
(add-after 'configure 'static-build |
||||||
|
(lambda _ |
||||||
|
(substitute* ".config" |
||||||
|
(("# CONFIG_STATIC is not set") |
||||||
|
"CONFIG_STATIC=y")))) |
||||||
|
;; FIXME: All mdev tests fail when building staticly. |
||||||
|
(add-before 'check 'disable-failing-tests |
||||||
|
(lambda _ |
||||||
|
(delete-file "testsuite/mdev.tests")))))))))) |
Loading…
Reference in new issue