From 865ca2402f411f0e5819c61203148de54ec5eda1 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Thu, 29 Mar 2018 11:52:08 +0100 Subject: [PATCH] nix copy: add an example with S3 I couldn't find a good example how to use it with non-us-east-1 buckets. --- src/nix/copy.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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 }; }