Skip to content

Commit d1ab502

Browse files
committed
Makefile: allow list-profiles target to run without jq
1 parent 9c4f883 commit d1ab502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ analyse: RUN := wb analyse std ${TAG}
5959
analyse: shell
6060

6161
list-profiles: ## List workbench profiles
62-
nix build .#workbench.profile-names-json --json | jq '.[0].outputs.out' -r | xargs jq .
62+
nix build .#all-profiles-json && cat result
6363
show-profile: ## NAME=profile-name
6464
@test -n "${NAME}" || { echo 'HELP: to specify profile to show, add NAME=profle-name' && exit 1; }
6565
nix build .#all-profiles-json --json --option substitute false | jq '.[0].outputs.out' -r | xargs jq ".\"${NAME}\" | if . == null then error(\"\n###\n### Error: unknown profile: ${NAME} Please consult: make list-profiles\n###\") else . end"

0 commit comments

Comments
 (0)