aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-28 11:19:17 +0200
committerGitHub <noreply@github.com>2020-05-28 11:19:17 +0200
commitd2a537568a7ed3fa8bee63c4298b771a27fdad89 (patch)
treebd0816ec42a3e60d817fa743e3b98c1f0d19322b
parent228857efc6b08d250025baf429da12e1fc439c4f (diff)
parent4e6d7cb55a884ac19990b487c2020ea257e0f9c3 (diff)
Merge pull request #3632 from LnL7/darwin-xz
installer: don't require xz on darwin
-rw-r--r--scripts/install.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install.in b/scripts/install.in
index 6709f00d4..1d26c4ff0 100644
--- a/scripts/install.in
+++ b/scripts/install.in
@@ -36,7 +36,9 @@ tarball="$tmpDir/$(basename "$tmpDir/nix-@nixVersion@-$system.tar.xz")"
require_util curl "download the binary tarball"
require_util tar "unpack the binary tarball"
-require_util xz "unpack the binary tarball"
+if [ "$(uname -s)" != "Darwin" ]; then
+ require_util xz "unpack the binary tarball"
+fi
echo "downloading Nix @nixVersion@ binary tarball for $system from '$url' to '$tmpDir'..."
curl -L "$url" -o "$tarball" || oops "failed to download '$url'"