diff options
author | Janne Heß <janne@hess.ooo> | 2021-12-10 12:58:12 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2021-12-10 12:58:12 +0100 |
commit | 4194b682500ee1e40b575e9729a8ddcbb6ac1518 (patch) | |
tree | 2b69bc3df1181d3fb7b1c14aed8212693f3357a9 /doc/manual/src | |
parent | c7b66caaca0833f0b88f3a93cbeaad73b4da1089 (diff) |
doc: Fix command for distributed builds
We also need to build impurely or the <nixpkgs> lookup will not work.
Diffstat (limited to 'doc/manual/src')
-rw-r--r-- | doc/manual/src/advanced-topics/distributed-builds.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/src/advanced-topics/distributed-builds.md b/doc/manual/src/advanced-topics/distributed-builds.md index 580b36736..c4c60db15 100644 --- a/doc/manual/src/advanced-topics/distributed-builds.md +++ b/doc/manual/src/advanced-topics/distributed-builds.md @@ -53,8 +53,8 @@ example, the following command allows you to build a derivation for $ uname Linux -$ nix build \ - '(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo" {} "uname > $out")' \ +$ nix build --impure \ + --expr '(with import <nixpkgs> { system = "x86_64-darwin"; }; runCommand "foo" {} "uname > $out")' \ --builders 'ssh://mac x86_64-darwin' [1/0/1 built, 0.0 MiB DL] building foo on ssh://mac |