github: use new --json flag to get packages

This commit is contained in:
Antoine Martin 2021-11-05 16:06:10 +01:00
parent 28c39af38b
commit abf1bd436a

View file

@ -2,12 +2,8 @@
set -xe
PACKAGES=$(nix flake show \
| grep ': package' \
| sed 's/\x1b\[[0-9;]*m//g' \
| sed -E 's/^.*───([A-Za-z/"-]+):.*$/\1/' \
| sort \
| uniq)
PACKAGES=$(nix flake show --json \
| jq '.packages."x86_64-linux" | keys[]')
for package in $PACKAGES; do
nix build --verbose -L .#$package