Get the derivation of a package in JSON format

This example shows the derivation of a package in JSON format. The derivation is taken from Nixpkgs. This is roughly equivalent to running nix derivation show nixpkgs#hello on the CLI. With the recursive option, the derivation's recursive output is returned, which corresponds to the --recursive parameter on the CLI.

Input

Output