2023-07-03 20:09:42 +02:00
|
|
|
#!/bin/sh -e
|
|
|
|
# Test whether all projects can be downloaded and built,
|
|
|
|
# in all available configurations--Nix introspection is a bit complicated,
|
|
|
|
# so they're listed explicitly.
|
|
|
|
|
2024-11-25 06:23:32 +01:00
|
|
|
# In case of stale checkouts: rm -rf ~/.cache/nix
|
|
|
|
|
2023-07-03 20:09:42 +02:00
|
|
|
build() {
|
|
|
|
echo "$(tput bold)-- Building $*$(tput sgr0)"
|
|
|
|
nix-build --arg local ${LOCAL:-false} "$@"
|
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
|
|
|
for target in *.nix
|
|
|
|
do
|
|
|
|
[ "$target" = default.nix ] && continue
|
|
|
|
|
|
|
|
build "$target"
|
|
|
|
build "$target" --arg full false
|
|
|
|
done
|
|
|
|
|
|
|
|
build pdf-simple-sign-master.nix --arg go true
|
|
|
|
build fiv-master.nix --arg withResvg true
|