Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer: don't require xz on darwin #3632

Merged
merged 1 commit into from May 28, 2020
Merged

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented May 27, 2020

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.

Alternative to adding this condition would be to revert #3431, in which case potentially more works out of the box but with the downside of worse error handling.

/cc @domenkozar

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.
@domenkozar
Copy link
Member

Weird, I tested it on github actions, but it seems like that has xz installed.

@LnL7
Copy link
Member Author

LnL7 commented May 27, 2020

We didn't check this part, unless you also built and tested the full installer script (pre tarball).

@domenkozar
Copy link
Member

domenkozar commented May 28, 2020

The code path in the PR is part of https://nixos.org/nix/install/ script, so I'm not sure what you mean.

@edolstra edolstra merged commit d2a5375 into NixOS:master May 28, 2020
@LnL7 LnL7 deleted the darwin-xz branch May 28, 2020 13:59
@Mic92
Copy link
Member

Mic92 commented May 29, 2020

@domenkozar I also came across this. This does not make a good first impression. Could we have a patch release for this? Otherwise it works perfect on Catalina!

@domenkozar
Copy link
Member

@Mic92 it seems like Eelco already prepared 2.3.6 release so it should be done soon :)

aherrmann added a commit to tweag/rules_haskell that referenced this pull request Jun 2, 2020
`xz` is required by the Nix installer to avoid the following error
```
sh: you do not have 'xz' installed, which I need to unpack the binary tarball
```

Eventually that dependency should be removed on MacOS, see
NixOS/nix#3632, but at the time of writing this
change is not available, yet.
```
$ curl -L https://nixos.org/nix/install | grep -C1 require_util\ xz
require_util tar "unpack the binary tarball"
require_util xz "unpack the binary tarball"

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants