use nix-output-monitor if available

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-01 22:48:30 -04:00 committed by June
parent 13f1274c35
commit 365c85ad27
2 changed files with 12 additions and 2 deletions

View file

@ -6,7 +6,12 @@ set -eo pipefail
INSTALLABLE="$1"
# Build the installable and forward any other arguments too
nix build -L "$@"
# uses nix-output-monitor (nom) if available
if command -v nom &> /dev/null; then
nom build "$@"
else
nix build -L "$@"
fi
if [ ! -z "$ATTIC_TOKEN" ]; then
nix run --inputs-from . attic -- \