Refactor jq command
This commit is contained in:
parent
a2d09e114b
commit
96d5a66001
1 changed files with 1 additions and 1 deletions
2
justfile
2
justfile
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue