add writeAshScriptBin (forgot to add file)

This commit is contained in:
Daniel Barlow 2024-06-15 15:04:56 +01:00
parent adc84108ad
commit 9540fc2641
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{
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}
''