Refactor jq command

This commit is contained in:
Oliver Davies 2025-04-17 17:20:23 +01:00
parent a2d09e114b
commit 96d5a66001

View file

@ -5,7 +5,7 @@ _default:
build:
#!/usr/bin/env bash
selected=$(nix flake show --json | jq --raw-output '.packages["x86_64-linux"] | keys[]' | grep -v shared | fzf)
selected=$(nix flake show --json | jq --raw-output '.packages."x86_64-linux" | keys | sort | .[] | select(. != "shared-assets")' | fzf)
nix build \
--json \