liminix-fork/pkgs/write-ash-script/default.nix

14 lines
206 B
Nix
Raw Normal View History

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