nix-packages/scripts/build-all.sh

12 lines
324 B
Bash
Raw Permalink Normal View History

2024-10-05 18:42:07 +00:00
#!/usr/bin/env bash
set -eo pipefail
packages=$(nix flake show --json --all-systems| \
jq -r '.packages["x86_64-linux"] | keys[] | ".#packages.x86_64-linux.\(.)"')
while IFS= read -r line; do
echo "building package $line"
nix build -L "$line"
echo "done building package $line"
done <<< "$packages"