···49495050## `writeShellApplication` {#trivial-builder-writeShellApplication}
51515252-This can be used to easily produce a shell script that has some dependencies (`buildInputs`). It automatically sets the `PATH` of the script to contain all of the listed inputs, sets some sanity shellopts (`errexit`, `nounset`, `pipefail`), and checks the resulting script with [`shellcheck`](https://github.com/koalaman/shellcheck).
5252+This can be used to easily produce a shell script that has some dependencies (`runtimeInputs`). It automatically sets the `PATH` of the script to contain all of the listed inputs, sets some sanity shellopts (`errexit`, `nounset`, `pipefail`), and checks the resulting script with [`shellcheck`](https://github.com/koalaman/shellcheck).
53535454For example, look at the following code:
5555···5757writeShellApplication {
5858 name = "show-nixos-org";
59596060- buildInputs = [ curl w3m ];
6060+ runtimeInputs = [ curl w3m ];
61616262 text = ''
6363 curl -s 'https://nixos.org' | w3m -dump -T text/html