Describe the bug
The lima nix package is unable to use vz in Mac due to some build tooling being stale regarding the MacOS SDK version it "sees".
Steps To Reproduce
Steps to reproduce the behavior:
- Use nix package lima in a current Mac (Eg a M1) with SDK 15.0
- Try to start a VM using
vz.
- See it fail:
FATA[0000] vm driver 'vz' needs macOS 13 or later (Hint: try recompiling Lima if you are seeing this error on macOS 13)
- Compile manually on the same machine (repository: https://github.com/lima-vm/lima cmd:
make binaries)
- See that binary work where the nix one failed.
Expected behavior
I would expect the nix package would work with vz just like the manual compilation does.
Additional context
Was trying to write a flake to reproduce and debug. This is what I found out:
Seems the script itself is dynamic. Does it mean it basically depends on what version of MacOS X is running it?
Is there any easy known workaround to get this nix package working with vz?
Notify maintainers
@r-ryantm
@wegank
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 23.6.0, macOS 14.6.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.18.1`
- channels(root): `"nixpkgs, unstable"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Add a 👍 reaction to issues you find important.
Describe the bug
The lima nix package is unable to use
vzin Mac due to some build tooling being stale regarding the MacOS SDK version it "sees".Steps To Reproduce
Steps to reproduce the behavior:
vz.FATA[0000] vm driver 'vz' needs macOS 13 or later (Hint: try recompiling Lima if you are seeing this error on macOS 13)make binaries)Expected behavior
I would expect the nix package would work with
vzjust like the manual compilation does.Additional context
Was trying to write a flake to reproduce and debug. This is what I found out:
vzexplicitly depending on the output ofxcruntool.xcruntool run by the nix package is within the nix packagexcbuildwhich replaces xcrun with a script wrapperMacOS11.0.sdkSeems the script itself is dynamic. Does it mean it basically depends on what version of MacOS X is running it?
Is there any easy known workaround to get this nix package working with
vz?Notify maintainers
@r-ryantm
@wegank
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"and paste the result.Add a 👍 reaction to issues you find important.