commit 9540fc264191afdf7719a56f054d127c02674b20 parent adc84108ad374082c6a567961bccc08515d15269 Author: Daniel Barlow <dan@telent.net> Date: Sat, 15 Jun 2024 15:04:56 +0100 add writeAshScriptBin (forgot to add file) Diffstat:
| A | pkgs/write-ash-script/bin.nix | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/pkgs/write-ash-script/bin.nix b/pkgs/write-ash-script/bin.nix @@ -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} +''