github: use new --json flag to get packages
This commit is contained in:
parent
28c39af38b
commit
abf1bd436a
8
.github/workflows/build-flake-packages.sh
vendored
8
.github/workflows/build-flake-packages.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue