configurable busybox

allows modules to add to the busybox applets and change config
This commit is contained in:
Daniel Barlow committed 2023-03-10 18:40:45 +00:00
1 parent 8b2fcb5336
commit 225fc6fe51
10 files changed
+101 -20

No files matched your search

+3 -4
View File
@@ -1,14 +1,13 @@
{
busybox
, writeScript
writeScript
, lib
}
: name : { runtimeInputs ? [] } : text : writeScript name ''
#!${busybox}/bin/sh
#!/bin/sh
set -o errexit
set -o nounset
set -o pipefail
export PATH="${lib.makeBinPath ([ busybox ] ++ runtimeInputs)}:$PATH"
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
${text}
''