14 lines
212 B
Nix
14 lines
212 B
Nix
|
{
|
||
|
writeScriptBin
|
||
|
, lib
|
||
|
}
|
||
|
: name : { runtimeInputs ? [] } : text : writeScriptBin name ''
|
||
|
#!/bin/sh
|
||
|
set -o errexit
|
||
|
set -o nounset
|
||
|
set -o pipefail
|
||
|
|
||
|
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
|
||
|
${text}
|
||
|
''
|