aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
AgeCommit message (Collapse)Author
2018-01-17nix eval: Take only one argumentEelco Dolstra
Thus --json no longer produces a list.
2017-11-20nix eval --raw: Use coerceToString()Eelco Dolstra
Thus, $ nix eval --raw '("foo")' foo $ nix eval --raw nixpkgs.hello /nix/store/1y6ckg6khrdsvll54s5spcmf3w6ka9k4-hello-2.10 $ nix eval --raw '(/etc/resolv.conf)' /nix/store/vml92ama92i8mz013nny461mlvg8mvap-resolv.conf
2017-09-07nix eval: Add examplesEelco Dolstra
2017-05-03nix eval: Add a --raw flagEelco Dolstra
Similar to "jq -r", this prints the evaluation result (which must be a string value) unquoted.
2017-04-25Move code aroundEelco Dolstra
2017-04-25Add "nix eval" commandEelco Dolstra
This replaces "nix-instantiate --eval". The result is evaluated strictly since this seems more useful.