summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-10-12 12:48:27 -0700
committerBernardo Meurer <bernardo@meurer.org>2021-11-08 09:33:33 -0800
commit0e4f04b74c3ec5948e2d860540409cf02306cb33 (patch)
treec26cbc70a57cb395c47e840db8ebb8d1ca7fd4f8 /doc
parent89979c9c5bef4cfc89e66662b1238a0bf7617702 (diff)
writeShellApplication: buildInputs -> runtimeInputs
Diffstat (limited to 'doc')
-rw-r--r--doc/builders/trivial-builders.chapter.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/builders/trivial-builders.chapter.md b/doc/builders/trivial-builders.chapter.md
index 4c0318a2541a..c3a3572cd9f4 100644
--- a/doc/builders/trivial-builders.chapter.md
+++ b/doc/builders/trivial-builders.chapter.md
@@ -49,7 +49,7 @@ Many more commands wrap `writeTextFile` including `writeText`, `writeTextDir`, `
## `writeShellApplication` {#trivial-builder-writeShellApplication}
-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).
+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).
For example, look at the following code:
@@ -57,7 +57,7 @@ For example, look at the following code:
writeShellApplication {
name = "show-nixos-org";
- buildInputs = [ curl w3m ];
+ runtimeInputs = [ curl w3m ];
text = ''
curl -s 'https://nixos.org' | w3m -dump -T text/html