lix-releng-staging/doc/manual
mei (ckie) 0e2b01b14e
nix repl: make symlinks with the :bl command
Requested by ppepino on the Matrix:
https://matrix.to/#/!KqkRjyTEzAGRiZFBYT:nixos.org/$Tb32BS3rVE2BSULAX4sPm0h6CDewX2hClOTGzTC7gwM?via=nixos.org&via=matrix.org&via=nixos.dev

This adds a new command, :bl, which works like :b but also creates
a GC root symlink to the various derivation outputs.

ckie@cookiemonster ~/git/nix -> ./outputs/out/bin/nix repl
Welcome to Nix 2.6.0. Type :? for help.

nix-repl> :l <nixpkgs>
Added 16118 variables.

nix-repl> :b runCommand "hello" {} "echo hi > $out"

This derivation produced the following outputs:
  ./repl-result-out -> /nix/store/kidqq2acdpi05c4a9mlbg2baikmzik44-hello
[1 built, 0.0 MiB DL]
ckie@cookiemonster ~/git/nix -> cat ./repl-result-out
hi
2022-04-20 00:20:29 +03:00
..
src nix repl: make symlinks with the :bl command 2022-04-20 00:20:29 +03:00
theme doc/manual: don't need to copy highlight.js manually 2021-08-04 19:47:05 -07:00
book.toml Improve margins between sections 2020-08-19 12:31:18 +02:00
custom.css Improve margins between sections 2020-08-19 12:31:18 +02:00
generate-builtins.nix Anchor with prefix 2022-02-24 13:50:50 +01:00
generate-manpage.nix Remove links to .md files in help output 2021-10-06 13:01:18 +02:00
generate-options.nix manual: Add some anchor targets for the nix.conf options 2022-04-05 13:50:42 +02:00
local.mk Add html make target 2022-02-23 15:06:13 +01:00
quote-literals.xsl
utils.nix Group subcommands by category 2021-01-25 18:19:32 +01:00