repl: allow :p to print derivation attrs.
Change-Id: I6a6a6964a58c3340acca9272c616c079c5218d6e
This commit is contained in:
@@ -100,3 +100,15 @@ Printing an environment with :env after adding a variable to the scope
|
||||
|
||||
Env level 1
|
||||
abort baseNameOf break builtins derivation derivationStrict dirOf false fetchGit fetchMercurial fetchTarball fetchTree fromTOML import isNull map null placeholder removeAttrs scopedImport throw toString true
|
||||
|
||||
Printing a derivation or something
|
||||
|
||||
nix-repl> fakeDrv = let drvAttrs = { builder = "meow"; system = "meower"; name = "mrowmrow"; }; in { inherit (drvAttrs) builder system name; inherit drvAttrs; type = "derivation"; }
|
||||
nix-repl> :p fakeDrv
|
||||
{
|
||||
builder = "meow";
|
||||
drvAttrs = «3 attributes elided»;
|
||||
name = "mrowmrow";
|
||||
system = "meower";
|
||||
type = "derivation";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user