Skip to content

Instantly share code, notes, and snippets.

@dfrankland
Created October 11, 2023 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfrankland/16cb91ba106330f1d7e274fa45245738 to your computer and use it in GitHub Desktop.
Save dfrankland/16cb91ba106330f1d7e274fa45245738 to your computer and use it in GitHub Desktop.
An example of getting all outputs of a nix derivation
#!/bin/bash
nix derivation show nixpkgs#zstd | jq 'to_entries[].value.outputs'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment