aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Gagarin <valentin.gagarin@tweag.io>2022-09-09 13:35:23 +0200
committerGitHub <noreply@github.com>2022-09-09 13:35:23 +0200
commitdceb4f9dbb14e3d8d6ffc6158033d3fd4b79baf7 (patch)
tree8c76b210d79dfc9b25c1d4244c581390b92cbecc /src
parent1d295e5fe7fc6ba80b460b00fa08c6decf4fa615 (diff)
parent92bae33ca5db60e729ce07156ebf1c06cf865cc8 (diff)
Merge pull request #6825 from rapenne-s/nix_shell_example
nix shell: document how to invoke multiple commands from the command …
Diffstat (limited to 'src')
-rw-r--r--src/nix/shell.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix/shell.md b/src/nix/shell.md
index 90b81fb2f..9fa1031f5 100644
--- a/src/nix/shell.md
+++ b/src/nix/shell.md
@@ -23,6 +23,12 @@ R""(
Hi everybody!
```
+* Run multiple commands in a shell environment:
+
+ ```console
+ # nix shell nixpkgs#gnumake -c sh -c "cd src && make"
+ ```
+
* Run GNU Hello in a chroot store:
```console