diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2020-05-27 20:58:42 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2020-05-27 20:58:42 +0200 |
commit | 4e6d7cb55a884ac19990b487c2020ea257e0f9c3 (patch) | |
tree | bd0816ec42a3e60d817fa743e3b98c1f0d19322b /scripts | |
parent | 228857efc6b08d250025baf429da12e1fc439c4f (diff) |
installer: don't require xz on darwin
On macOS the system tar has builtin support for lzma while xz isn't
available as a separate binary. There's no builtin package manager
there available either so having to install lzma (without nix) would be
rather painful.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/install.in | 4 |
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'" |