Skip to content

Instantly share code, notes, and snippets.

@SkamDart
Created November 23, 2021 02:32
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 SkamDart/b914402efd16e62694ae1df97449a17e to your computer and use it in GitHub Desktop.
Save SkamDart/b914402efd16e62694ae1df97449a17e to your computer and use it in GitHub Desktop.
Nix flakes build all outputs
nix flake show --json | jq '[leaf_paths as $path | select(getpath($path) == "derivation") | {"key": $path | join(".") | sub(".type";""), "value": getpath($path)}] | from_entries | keys|.[]' -cr | xargs -I{} nix build .#{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment