Skip to content

Instantly share code, notes, and snippets.

@d-goldin
Created December 14, 2019 13:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-goldin/dd022b2264337a7d739e1fa8f7315f86 to your computer and use it in GitHub Desktop.
Save d-goldin/dd022b2264337a7d739e1fa8f7315f86 to your computer and use it in GitHub Desktop.
nix-repl> :t "/tmp/a"
a string
nix-repl> :t /tmp/a
a path
nix-repl> :t "${/tmp/a}"
a string with context
nix-repl> sctxt = "${/tmp/a}"
nix-repl> :p builtins.getContext sctxt
{ "/nix/store/rldyhkmzpddsnl2r1fx6lbpii3zyzdj3-a" = { path = true; }; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment