aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/src/advanced-topics/post-build-hook.md
diff options
context:
space:
mode:
authorAlexander Schmolck <a.schmolck+git@gmail.com>2023-04-30 14:52:38 +0100
committerAlexander Schmolck <a.schmolck+git@gmail.com>2023-05-17 08:10:30 +0100
commit8d4b6766e297314f69ee96b6c9d74c6c2637f84b (patch)
tree87887a5594bb26729795157dea40168d29923699 /doc/manual/src/advanced-topics/post-build-hook.md
parent5fd161189d2405353eef6b1e7eb9441d6be1911e (diff)
Convert short nix options to long ones
e.g. nix-env -e subversion => nix-env --uninstall subversion The aim is to make the documentation less cryptic for newcomers and the long options are more self-documenting. The change was made with the following script: <https://github.com/aschmolck/convert-short-nix-opts-to-long-ones> and sanity checked visually.
Diffstat (limited to 'doc/manual/src/advanced-topics/post-build-hook.md')
-rw-r--r--doc/manual/src/advanced-topics/post-build-hook.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/src/advanced-topics/post-build-hook.md b/doc/manual/src/advanced-topics/post-build-hook.md
index 1479cc3a4..a251dec48 100644
--- a/doc/manual/src/advanced-topics/post-build-hook.md
+++ b/doc/manual/src/advanced-topics/post-build-hook.md
@@ -90,7 +90,7 @@ Then, restart the `nix-daemon`.
Build any derivation, for example:
```console
-$ nix-build -E '(import <nixpkgs> {}).writeText "example" (builtins.toString builtins.currentTime)'
+$ nix-build --expr '(import <nixpkgs> {}).writeText "example" (builtins.toString builtins.currentTime)'
this derivation will be built:
/nix/store/s4pnfbkalzy5qz57qs6yybna8wylkig6-example.drv
building '/nix/store/s4pnfbkalzy5qz57qs6yybna8wylkig6-example.drv'...