nix-instantiate
Create store derivations from nix expressions. tldr-pages
On several platforms
Several platforms
Instantiate a store derivation from a Nix file
nix-instantiate path/to/file.nixIdentifyEvaluate an expression
nix-instantiate --eval --expr expressionIdentifyEvaluate with machine readable output
nix-instantiate --eval --xml --expr expressionIdentifyEvaluate an expression and print the raw output (the output of the function must be a string)
nix-instantiate --eval --raw --expr expressionIdentifyEvaluate a Nix expression from a specified file
nix-instantiate --eval path/to/file.nixIdentify