nix-eval
Evaluate a Nix expression and print the result to stdout. tldr-pages
On several platforms
Several platforms
Evaluate Nix flake attributes in the current directory
nix eval .#attributesIdentifyEvaluate a given Nix expression
nix eval --expr 'your_expression'IdentifyEvaluate a Nix expression from a specified file
nix eval --file path/to/fileIdentifyPrint the store path of the specified package from nixpkgs
nix eval nixpkgs#pkg --rawIdentifyEvaluate attributes from a flake directly from GitHub
nix eval github:owner/repo#attributesIdentifyEvaluate a given lambda function passing the specified package as argument
nix eval nixpkgs#pkg --apply 'lambda_function'Identify