liminix-fork/pkgs/write-ash-script/default.nix
Daniel Barlow 225fc6fe51 configurable busybox
allows modules to add to the busybox applets and change config
2023-03-10 18:40:45 +00:00

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}
''