diff options
author | Alexander Bantyev <balsoft@balsoft.ru> | 2021-11-26 18:03:07 +0300 |
---|---|---|
committer | Alexander Bantyev <balsoft@balsoft.ru> | 2021-12-06 16:52:50 +0300 |
commit | 33926ed1e75c06cbf70a920e462841cc9daa0520 (patch) | |
tree | 1e375e99c1848edb70427588f2febaa9967be1d3 /src/nix/repl.md | |
parent | 0a2fa2d68460eca946c91b72cd264725e5cda7db (diff) |
nix repl: add :log
Add a :log command that shows logs for a derivation.
Closes https://github.com/NixOS/nix/issues/3504
Co-authored-by: Taeer Bar-Yam <taeer@bar-yam.me>
Diffstat (limited to 'src/nix/repl.md')
-rw-r--r-- | src/nix/repl.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/nix/repl.md b/src/nix/repl.md index bba60f871..9b6f2bee3 100644 --- a/src/nix/repl.md +++ b/src/nix/repl.md @@ -35,14 +35,17 @@ R""( nix-repl> emacs.drvPath "/nix/store/lp0sjrhgg03y2n0l10n70rg0k7hhyz0l-emacs-27.1.drv" - nix-repl> drv = runCommand "hello" { buildInputs = [ hello ]; } "hello > $out" + nix-repl> drv = runCommand "hello" { buildInputs = [ hello ]; } "hello; hello > $out" - nix-repl> :b x + nix-repl> :b drv this derivation produced the following outputs: out -> /nix/store/0njwbgwmkwls0w5dv9mpc1pq5fj39q0l-hello nix-repl> builtins.readFile drv "Hello, world!\n" + + nix-repl> :log drv + Hello, world! ``` # Description |