225fc6fe51
allows modules to add to the busybox applets and change config
13 lines
206 B
Nix
13 lines
206 B
Nix
{
|
|
writeScript
|
|
, lib
|
|
}
|
|
: name : { runtimeInputs ? [] } : text : writeScript name ''
|
|
#!/bin/sh
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
|
|
${text}
|
|
''
|