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
|
set -xe
|
||||||
|
|
||||||
PACKAGES=$(nix flake show \
|
PACKAGES=$(nix flake show --json \
|
||||||
| grep ': package' \
|
| jq '.packages."x86_64-linux" | keys[]')
|
||||||
| sed 's/\x1b\[[0-9;]*m//g' \
|
|
||||||
| sed -E 's/^.*───([A-Za-z/"-]+):.*$/\1/' \
|
|
||||||
| sort \
|
|
||||||
| uniq)
|
|
||||||
|
|
||||||
for package in $PACKAGES; do
|
for package in $PACKAGES; do
|
||||||
nix build --verbose -L .#$package
|
nix build --verbose -L .#$package
|
||||||
|
|
Loading…
Reference in a new issue