aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2018-03-30 11:38:30 +0200
committerGitHub <noreply@github.com>2018-03-30 11:38:30 +0200
commit4ee4fda521137fed6af0446948b3877e0c5db803 (patch)
tree989c9c2c4f4271b4ccb3cf1e6f8798b8f4f6ce5e
parent446bb88f13080eed131a1b0bd304c45a860a3fab (diff)
parent865ca2402f411f0e5819c61203148de54ec5eda1 (diff)
Merge pull request #2025 from zimbatm/document-s3-usage
nix copy: add an example with S3
-rw-r--r--src/nix/copy.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc
index f29429c1a..e4e6c3e30 100644
--- a/src/nix/copy.cc
+++ b/src/nix/copy.cc
@@ -67,6 +67,12 @@ struct CmdCopy : StorePathsCommand
"To copy a closure from another machine via SSH:",
"nix copy --from ssh://server /nix/store/a6cnl93nk1wxnq84brbbwr6hxw9gp2w9-blender-2.79-rc2"
},
+#ifdef ENABLE_S3
+ Example{
+ "To populate the current folder build output to a S3 binary cache:",
+ "nix copy --to s3://my-bucket?region=eu-west-1"
+ },
+#endif
};
}