Skip to content

Lima not supporting vz in Mac - works when compiled manually #346006

Description

@josvazg

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:

  1. Use nix package lima in a current Mac (Eg a M1) with SDK 15.0
  2. Try to start a VM using vz.
  3. 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)
  4. Compile manually on the same machine (repository: https://github.com/lima-vm/lima cmd: make binaries)
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions