tools/install.sh: soft requirement on nix
diff --git a/tools/install.sh b/tools/install.sh
index 4485f47..b93f10d 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -9,5 +9,11 @@
bazel build \
//tools:kubectl //tools:kubecfg //tools:secretstore \
- //tools:pass //tools:calicoctl.bin //tools:cfssl \
- //tools:nixops
+ //tools:pass //tools:calicoctl.bin //tools:cfssl
+
+if [ ! -e /nix ] ; then
+ echo "WARNING: No Nix installation detected. nix-dependent tools (nixops) will not be built or available."
+else
+ bazel build \
+ //tools:nixops
+fi