mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
use nix-output-monitor if available
This commit is contained in:
parent
f205280520
commit
ce5ce60dd9
1 changed files with 7 additions and 2 deletions
|
|
@ -5,8 +5,13 @@ set -euo pipefail
|
||||||
# The first argument must be the desired installable
|
# The first argument must be the desired installable
|
||||||
INSTALLABLE="$1"
|
INSTALLABLE="$1"
|
||||||
|
|
||||||
# Build the installable and forward any other arguments too
|
# Build the installable and forward any other arguments too. Also, use
|
||||||
nix build "$@"
|
# nix-output-monitor instead if it's available.
|
||||||
|
if command -v nom &> /dev/null; then
|
||||||
|
nom build "$@"
|
||||||
|
else
|
||||||
|
nix build "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -z ${ATTIC_TOKEN+x} ]; then
|
if [ ! -z ${ATTIC_TOKEN+x} ]; then
|
||||||
nix run --inputs-from . attic -- \
|
nix run --inputs-from . attic -- \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue