Files
liminix/pkgs/write-ash-script/bin.nix
2024-06-15 15:04:56 +01:00

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