mirror of
https://github.com/NixOS/nix.git
synced 2025-12-10 19:11:03 +01:00
910 B
910 B
R""(
Examples
-
To copy the build log of the
hellopackage from https://cache.nixos.org to the local store:# nix store copy-log --from https://cache.nixos.org --eval-store auto nixpkgs#helloYou can verify that the log is available locally:
# nix log --substituters '' nixpkgs#hello(The flag
--substituters ''avoids queryinghttps://cache.nixos.orgfor the log.) -
To copy the log for a specific store derivation via SSH:
# nix store copy-log --to ssh-ng://machine /nix/store/ilgm50plpmcgjhcp33z6n4qbnpqfhxym-glibc-2.33-59.drv
Description
nix store copy-log copies build logs between two Nix stores. The
source store is specified using --from and the destination using
--to. If one of these is omitted, it defaults to the local store.
)""