aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2022-09-06 08:18:13 -0700
committerJonathan Ringer <jonringer117@gmail.com>2022-09-06 08:18:29 -0700
commit6ce2e96c88c71e40303980eb5793aa6ae4a5a333 (patch)
tree2797570b911736decd078394a0022b5907ccbae8 /src
parent7f31c0822477707bec5423d41fffc8b10463024b (diff)
Docs: Add nix develop --command entry
Add example of nix develop being used to execuate a series of script commands. This is common when doing things like CI/CD, and should be represented in the official documentation. Also useful for people looking for the 'nix develop' equivalent of 'nix-shell --run'. Related: - https://github.com/NixOS/nix/issues/6908 - https://github.com/NixOS/nix/issues/6908#issuecomment-1229266853
Diffstat (limited to 'src')
-rw-r--r--src/nix/develop.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix/develop.md b/src/nix/develop.md
index e036ec6b9..4e8542d1b 100644
--- a/src/nix/develop.md
+++ b/src/nix/develop.md
@@ -66,6 +66,12 @@ R""(
`nixpkgs#glibc` in `~/my-glibc` and want to compile another package
against it.
+* Run a series of script commands:
+
+ ```console
+ # nix develop --command bash -c "mkdir build && cmake .. && make"
+ ```
+
# Description
`nix develop` starts a `bash` shell that provides an interactive build