From bb77892924363b5eba8f8730395b1ac347e5d48a Mon Sep 17 00:00:00 2001 From: Sergiusz Bazanski Date: Wed, 15 May 2019 19:13:11 +0200 Subject: [PATCH] tools/install.sh: soft requirement on nix --- tools/install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 4485f474..b93f10d5 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -9,5 +9,11 @@ cd "${hscloud_root}" 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