Skip to content

Commit

Permalink
fix(discover): capture failure of Nix eval
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Dec 17, 2022
1 parent e4ff926 commit 12fbb7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions discover/eval.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ function eval() {
local system delim

system="$(nix eval --raw --impure --expr 'builtins.currentSystem')"
JSON="$(nix eval "$FLAKE#__std.ci'.$system" --json | jq -c '
list="$(nix eval "$FLAKE#__std.ci'.$system" --json)"
JSON="$(jq -c '
group_by(.block)
| map({
key: .[0].block,
Expand All @@ -23,7 +24,7 @@ function eval() {
| from_entries
)
})
| from_entries'
| from_entries' <<< "$list"
)"

nix_conf=("$(nix eval --raw "$FLAKE#__std.nixConfig")")
Expand Down

0 comments on commit 12fbb7e

Please sign in to comment.