diff options
Diffstat (limited to 'nixpkgs/doc/builders/trivial-builders.chapter.md')
-rw-r--r-- | nixpkgs/doc/builders/trivial-builders.chapter.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixpkgs/doc/builders/trivial-builders.chapter.md b/nixpkgs/doc/builders/trivial-builders.chapter.md index 779a0a801b4e..c05511785bf5 100644 --- a/nixpkgs/doc/builders/trivial-builders.chapter.md +++ b/nixpkgs/doc/builders/trivial-builders.chapter.md @@ -35,10 +35,10 @@ This works just like `runCommand`. The only difference is that it also provides ## `runCommandLocal` {#trivial-builder-runCommandLocal} -Variant of `runCommand` that forces the derivation to be built locally, it is not substituted. This is intended for very cheap commands (<1s execution time). It saves on the network roundrip and can speed up a build. +Variant of `runCommand` that forces the derivation to be built locally, it is not substituted. This is intended for very cheap commands (<1s execution time). It saves on the network round-trip and can speed up a build. ::: {.note} -This sets [`allowSubstitutes` to `false`](https://nixos.org/nix/manual/#adv-attr-allowSubstitutes), so only use `runCommandLocal` if you are certain the user will always have a builder for the `system` of the derivation. This should be true for most trivial use cases (e.g. just copying some files to a different location or adding symlinks), because there the `system` is usually the same as `builtins.currentSystem`. +This sets [`allowSubstitutes` to `false`](https://nixos.org/nix/manual/#adv-attr-allowSubstitutes), so only use `runCommandLocal` if you are certain the user will always have a builder for the `system` of the derivation. This should be true for most trivial use cases (e.g., just copying some files to a different location or adding symlinks) because there the `system` is usually the same as `builtins.currentSystem`. ::: ## `writeTextFile`, `writeText`, `writeTextDir`, `writeScript`, `writeScriptBin` {#trivial-builder-writeText} @@ -219,5 +219,5 @@ produces an output path `/nix/store/<hash>-runtime-references` containing /nix/store/<hash>-hello-2.10 ``` -but none of `hello`'s dependencies, because those are not referenced directly +but none of `hello`'s dependencies because those are not referenced directly by `hi`'s output. |