forked from dan/liminix
add writeAshScriptBin (forgot to add file)
This commit is contained in:
parent
adc84108ad
commit
9540fc2641
13
pkgs/write-ash-script/bin.nix
Normal file
13
pkgs/write-ash-script/bin.nix
Normal 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}
|
||||
''
|
Loading…
Reference in New Issue
Block a user