diff --git a/.github/workflows/build-flake-packages.sh b/.github/workflows/build-flake-packages.sh index 2d68df1..4d002c7 100755 --- a/.github/workflows/build-flake-packages.sh +++ b/.github/workflows/build-flake-packages.sh @@ -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