nix: show build time on postgrest-with-pgrst
This commit is contained in:
committed by
Steve Chavez
parent
050554e2bb
commit
4cdc4c4861
@@ -373,6 +373,7 @@ let
|
|||||||
|
|
||||||
if [ -z "''${PGRST_CMD:-}" ]; then
|
if [ -z "''${PGRST_CMD:-}" ]; then
|
||||||
rm -f result
|
rm -f result
|
||||||
|
build_start=$SECONDS
|
||||||
if [ -z "''${PGRST_BUILD_CABAL:-}" ]; then
|
if [ -z "''${PGRST_BUILD_CABAL:-}" ]; then
|
||||||
echo -n "Building postgrest (nix)... "
|
echo -n "Building postgrest (nix)... "
|
||||||
# Using lib.getBin to also make this work with older checkouts, where .bin was not a thing, yet.
|
# Using lib.getBin to also make this work with older checkouts, where .bin was not a thing, yet.
|
||||||
@@ -387,7 +388,8 @@ let
|
|||||||
postgrest-build
|
postgrest-build
|
||||||
PGRST_CMD=postgrest-run
|
PGRST_CMD=postgrest-run
|
||||||
fi
|
fi
|
||||||
echo "done."
|
build_end=$((SECONDS - build_start))
|
||||||
|
printf "done in %ss.\n" "$build_end"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ver=$($PGRST_CMD ${legacyConfig} --version)
|
ver=$($PGRST_CMD ${legacyConfig} --version)
|
||||||
|
|||||||
Reference in New Issue
Block a user