diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-18 17:35:41 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-01-18 17:37:04 +0100 |
commit | 04432f25101f0da74d8ba3bb0cbb6a9ea9501b7c (patch) | |
tree | 16d047e293625f7a2fb5439bd8125809042eccf0 /src/nix/store-copy-log.md | |
parent | 5fe1ec8a05f0074329dfe8ba13b55d583504e4ef (diff) |
Add examples
Diffstat (limited to 'src/nix/store-copy-log.md')
-rw-r--r-- | src/nix/store-copy-log.md | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/nix/store-copy-log.md b/src/nix/store-copy-log.md index f0cb66e57..19ae57079 100644 --- a/src/nix/store-copy-log.md +++ b/src/nix/store-copy-log.md @@ -2,7 +2,27 @@ R""( # Examples -TODO +* To copy the build log of the `hello` package from + https://cache.nixos.org to the local store: + + ```console + # nix store copy-log --from https://cache.nixos.org --eval-store auto nixpkgs#hello + ``` + + You can verify that the log is available locally: + + ```console + # nix log --substituters '' nixpkgs#hello + ``` + + (The flag `--substituters ''` avoids querying + `https://cache.nixos.org` for the log.) + +* To copy the log for a specific store derivation via SSH: + + ```console + # nix store copy-log --to ssh-ng://machine /nix/store/ilgm50plpmcgjhcp33z6n4qbnpqfhxym-glibc-2.33-59.drv + ``` # Description |