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

nesting: init at 0.2.1 #338281

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

commiterate
Copy link
Contributor

Description of changes

Initialize nesting at 0.2.1.

This is used by GitLab Runner for nested virtualization (example).

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@commiterate
Copy link
Contributor Author

Darwin build is broken.

[nix-shell:~/workplace/nixpkgs]$ nix-build -A nesting
this derivation will be built:
  /nix/store/zxsgqfri89chpxkw6vafz6z7s9l0z34a-nesting-0.2.1.drv
building '/nix/store/zxsgqfri89chpxkw6vafz6z7s9l0z34a-nesting-0.2.1.drv'...
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: unpackPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
unpacking source archive /nix/store/365hh320g3ck900mvnb0zjd7jinkywp2-source
source root is source
Running phase: patchPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: updateAutotoolsGnuConfigScriptsPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: configurePhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: buildPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Building subPackage ./cmd/nesting
package gitlab.com/gitlab-org/fleeting/nesting/cmd/nesting
        imports gitlab.com/gitlab-org/fleeting/nesting/cmd/nesting/serve
        imports gitlab.com/gitlab-org/fleeting/nesting/hypervisor/virtualizationframework
        imports github.com/Code-Hex/gvisor-vmnet
        imports gvisor.dev/gvisor/pkg/tcpip/adapters/gonet
        imports gvisor.dev/gvisor/pkg/tcpip/stack
        imports gvisor.dev/gvisor/pkg/sync/locking
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /private/tmp/nix-build-nesting-0.2.1.drv-0/source/vendor/gvisor.dev/gvisor/pkg/gohacks
Running phase: checkPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
package gitlab.com/gitlab-org/fleeting/nesting/cmd/nesting
        imports gitlab.com/gitlab-org/fleeting/nesting/cmd/nesting/serve
        imports gitlab.com/gitlab-org/fleeting/nesting/hypervisor/virtualizationframework
        imports github.com/Code-Hex/gvisor-vmnet
        imports gvisor.dev/gvisor/pkg/tcpip/adapters/gonet
        imports gvisor.dev/gvisor/pkg/tcpip/stack
        imports gvisor.dev/gvisor/pkg/sync/locking
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /private/tmp/nix-build-nesting-0.2.1.drv-0/source/vendor/gvisor.dev/gvisor/pkg/gohacks
Running phase: installPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Running phase: fixupPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
checking for references to /private/tmp/nix-build-nesting-0.2.1.drv-0/ in /nix/store/xgqgmksvxyckm479mja1wl7ca96drl12-nesting-0.2.1...
patching script interpreter paths in /nix/store/xgqgmksvxyckm479mja1wl7ca96drl12-nesting-0.2.1
/nix/store/xgqgmksvxyckm479mja1wl7ca96drl12-nesting-0.2.1

[nix-shell:~/workplace/nixpkgs]$ tree /nix/store/xgqgmksvxyckm479mja1wl7ca96drl12-nesting-0.2.1
/nix/store/xgqgmksvxyckm479mja1wl7ca96drl12-nesting-0.2.1

0 directories, 0 files

Likely the same cause as this issue in colima: abiosoft/colima#401

There was a subsequent commit after the v0.2.1 release which upgrades the gvisor version used by nesting.

https://gitlab.com/gitlab-org/fleeting/nesting/-/merge_requests/14/commits

Need to ask upstream to create a new release.

@commiterate
Copy link
Contributor Author

commiterate commented Aug 30, 2024

Building with the current latest commit (72e7d53e8567d950e4d29fd1f2e94507e92b482e) gets a bit further but has a different problem.

[nix-shell:~/workplace/nixpkgs]$ nix-build -A nesting
these 2 derivations will be built:
  /nix/store/n09msfjia44p0y3mrd5zy1vflb2nbs9b-nesting-0.2.2-dev-go-modules.drv
  /nix/store/v8w7w7acgbif2sda0w8bffdm0rxz697r-nesting-0.2.2-dev.drv
...
Running phase: buildPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Building subPackage ./cmd/nesting
# github.com/Code-Hex/vz/v3
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:9:
./virtualization_helper.h:25:9: warning: macOS 12.3 API has been disabled [-W#pragma-messages]
#pragma message("macOS 12.3 API has been disabled")
        ^
./virtualization_helper.h:32:9: warning: macOS 13 API has been disabled [-W#pragma-messages]
#pragma message("macOS 13 API has been disabled")
        ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
./virtualization_11.h:10:9: fatal error: 'Virtualization/Virtualization.h' file not found
#import <Virtualization/Virtualization.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings and 1 error generated.
error: builder for '/nix/store/v8w7w7acgbif2sda0w8bffdm0rxz697r-nesting-0.2.2-dev.drv' failed with exit code 1;
       last 10 log lines:
       > #pragma message("macOS 12.3 API has been disabled")
       >         ^
       > ./virtualization_helper.h:32:9: warning: macOS 13 API has been disabled [-W#pragma-messages]
       > #pragma message("macOS 13 API has been disabled")
       >         ^
       > In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
       > ./virtualization_11.h:10:9: fatal error: 'Virtualization/Virtualization.h' file not found
       > #import <Virtualization/Virtualization.h>
       >         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       > 2 warnings and 1 error generated.
       For full logs, run 'nix log /nix/store/v8w7w7acgbif2sda0w8bffdm0rxz697r-nesting-0.2.2-dev.drv'.

For reference, this is on an Apple MacBook Pro with an M2 Pro on macOS Sonoma 14.6.1.

It's likely because I'm missing Xcode as a build input.

https://github.com/Code-Hex/vz/tree/c3198942b1b797ac424b673e06769f45bef0d275?tab=readme-ov-file#known-compile-time-warnings

Probably need to follow one of the existing language and framework guides in the Nixpkgs manual:

pkgs/by-name/ne/nesting/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ne/nesting/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ne/nesting/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/ne/nesting/package.nix Outdated Show resolved Hide resolved
@commiterate
Copy link
Contributor Author

Looking around at some other packages for reference:

Looks like I need to add a buildInput for the appropriate Xcode framework.

This is likely the one I need:

Virtualization = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; };

With this in the package:

{
  lib,
  darwin,
  stdenv,
  # ...
}:

buildGoModule rec {
  pname = "nesting";
  version = "0.2.2-dev";

  src = fetchFromGitLab {
    owner = "gitlab-org/fleeting";
    repo = "nesting";
    rev = "72e7d53e8567d950e4d29fd1f2e94507e92b482e";
    hash = "sha256-p9al3N5DdNC/e/DF5M9RgJgYOnNfHTyt47vP2rTe7I8=";
  };

  vendorHash = "sha256-3c2qemiBwiXTHIu52YOr9yAZLDQuhdthvvhMgfK7EZc=";

  buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk_12_3.frameworks.Virtualization ];

  # ...
}

We get further again, but still run into an error.

nix-build -A nesting
Running phase: buildPhase
install: skipping file '/dev/fd/63', as it was replaced while being copied
Building subPackage ./cmd/nesting
# github.com/Code-Hex/vz/v3
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCell.h:11:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSText.h:9:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSView.h:19:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:20:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCell.h:98:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:11:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:14:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSUserActivity.h:11:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSDocument.h:88:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:12:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h:25:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:44:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:24:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBar.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBarItem.h:26:42: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2), ios(13.0)) NS_SWIFT_UI_ACTOR
                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:24:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBar.h:20:42: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2), ios(13.0)) NS_SWIFT_UI_ACTOR
                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:33:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h:29:122: error: expected ':'
- (void)showSamplerWithSelectionHandler:(void (^)(NSColor * _Nullable selectedColor))selectionHandler NS_SWIFT_ASYNC_NAME(sample());
                                                                                                                         ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h:29:122: error: expected ';' after method prototype
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:66:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h:20:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:80:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h:34:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.10)) NS_SWIFT_UI_ACTOR
                            ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:96:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h:70:31: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2)) NS_SWIFT_UI_ACTOR
                              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:98:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h:41:31: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2)) NS_SWIFT_UI_ACTOR
                              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:100:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h:19:40: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12), ios(13.0)) NS_SWIFT_UI_ACTOR
                                       ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h:42:40: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12), ios(13.0)) NS_SWIFT_UI_ACTOR
                                       ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:108:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h:17:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:115:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h:41:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:116:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h:73:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:118:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h:23:28: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.9)) NS_SWIFT_UI_ACTOR
                           ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:133:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:100:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:123:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:143:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:145:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTrackingSeparatorToolbarItem.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:15:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:33:26: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(ios(13.0)) NS_SWIFT_UI_ACTOR
                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:145:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTrackingSeparatorToolbarItem.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:33:26: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(ios(13.0)) NS_SWIFT_UI_ACTOR
                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:197:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:193:40: error: expected ';' at end of declaration list
@property (nullable, weak) NSView *view NS_SWIFT_UI_ACTOR API_DEPRECATED("", macos(10.0,10.14));
                                       ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:193:41: error: unknown type name 'NS_SWIFT_UI_ACTOR'
@property (nullable, weak) NSView *view NS_SWIFT_UI_ACTOR API_DEPRECATED("", macos(10.0,10.14));
                                        ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:194:58: error: expected ':'
- (void)setView:(nullable NSView *)view NS_SWIFT_UI_ACTOR API_DEPRECATED("Use NSOpenGLView to provide OpenGL content in a Cocoa app.", macos(10.0,10.14));
                                                         ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:202:15: error: expected ';' after method prototype
- (void)update NS_SWIFT_UI_ACTOR;
              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:267:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h:93:108: error: expected ':'
- (void)performEditingTransactionUsingBlock:(void (NS_NOESCAPE ^) (void))transaction NS_SWIFT_DISABLE_ASYNC;
                                                                                                           ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:37:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSInstaller.h:111:106: error: expected ';' after method prototype
- (void)installWithCompletionHandler:(void(^)(NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(install());
                                                                                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:38:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSRestoreImage.h:45:158: error: expected ';' after method prototype
+ (void)loadFileURL:(NSURL *)fileURL completionHandler:(void (^)(VZMacOSRestoreImage * _Nullable, NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(image(from:));
                                                                                                                                                             ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSRestoreImage.h:60:153: error: expected ';' after method prototype
+ (void)fetchLatestSupportedWithCompletionHandler:(void (^)(VZMacOSRestoreImage * _Nullable, NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(getter:latestSupported());
                                                                                                                                                        ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:65:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtioSocketDevice.h:55:180: error: expected ';' after method prototype
- (void)connectToPort:(uint32_t)port completionHandler:(void (^)(VZVirtioSocketConnection * _Nullable connection, NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(connect(toPort:));
                                                                                                                                                                                   ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:74:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:178:116: error: expected ';' after method prototype
- (void)startWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(start());
                                                                                                                   ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:198:116: error: expected ';' after method prototype
- (void)pauseWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(pause());
                                                                                                                   ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:207:117: error: expected ';' after method prototype
- (void)resumeWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(resume());
                                                                                                                    ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:29:
/nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h:215:241: error: expected ';' after method prototype
- (void)addPersistentStoreWithDescription:(NSPersistentStoreDescription *)storeDescription completionHandler:(void (^)(NSPersistentStoreDescription *, NSError * _Nullable))block API_AVAILABLE(macosx(10.12),ios(10.0),tvos(10.0),watchos(3.0)) NS_SWIFT_DISABLE_ASYNC;
                                                                                                                                                                                                                                                ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:56:
/nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h:42:142: error: expected ':'
- (void)loadPersistentStoresWithCompletionHandler:(void (^)(NSPersistentStoreDescription *, NSError * _Nullable))block NS_SWIFT_DISABLE_ASYNC;
                                                                                                                                             ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:63:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentCloudKitContainerOptions.h:12:
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:40:171: error: expected ':'
- (void)fetchRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecord * _Nullable record, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(record(for:));
                                                                                                                                                                          ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:40:171: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:42:176: error: expected ':'
- (void)deleteRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecordID * _Nullable recordID, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(deleteRecord(withID:));
                                                                                                                                                                               ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:42:176: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:56:167: error: expected ':'
- (void)fetchAllRecordZonesWithCompletionHandler:(void (^)(NSArray<CKRecordZone *> * _Nullable zones, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(allRecordZones());
                                                                                                                                                                      ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:56:167: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:57:179: error: expected ':'
- (void)fetchRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZone * _Nullable zone, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(recordZone(for:));
                                                                                                                                                                                  ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:57:179: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:59:184: error: expected ':'
- (void)deleteRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZoneID * _Nullable zoneID, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(deleteRecordZone(withID:));
                                                                                                                                                                                       ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:59:184: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:63:242: error: expected ';' after method prototype
- (void)fetchSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscription * _Nullable subscription, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
                                                                                                                                                                                                                                                 ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:64:222: error: expected ';' after method prototype
- (void)fetchAllSubscriptionsWithCompletionHandler:(void (^)(NSArray<CKSubscription *> * _Nullable subscriptions, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_SWIFT_ASYNC_NAME(allSubscriptions());
                                                                                                                                                                                                                             ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:66:245: error: expected ';' after method prototype
- (void)deleteSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscriptionID _Nullable subscriptionID, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
                                                                                                                                                                                                                                                    ^
51 errors generated.
error: builder for '/nix/store/1lnrgpls597h5262bdykxmsjhd1jj2m1-nesting-0.2.2-dev.drv' failed with exit code 1;
       last 10 log lines:
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:63:242: error: expected ';' after method prototype
       > - (void)fetchSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscription * _Nullable subscription, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
       >                                                                                                                                                                                                                                                  ^
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:64:222: error: expected ';' after method prototype
       > - (void)fetchAllSubscriptionsWithCompletionHandler:(void (^)(NSArray<CKSubscription *> * _Nullable subscriptions, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_SWIFT_ASYNC_NAME(allSubscriptions());
       >                                                                                                                                                                                                                              ^
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:66:245: error: expected ';' after method prototype
       > - (void)deleteSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscriptionID _Nullable subscriptionID, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
       >                                                                                                                                                                                                                                                     ^
       > 51 errors generated.
       For full logs, run 'nix log /nix/store/1lnrgpls597h5262bdykxmsjhd1jj2m1-nesting-0.2.2-dev.drv'.

@commiterate
Copy link
Contributor Author

commiterate commented Aug 30, 2024

Stepping down to apple_sdk_11_0 doesn't work since Code-Hex/vz seems to be trying to use some classes and methods only available in newer Xcode versions.

Might need to get a newer version of Xcode into Nix?

@commiterate
Copy link
Contributor Author

commiterate commented Aug 30, 2024

Using apple_sdk_12_3 and the SwiftUI (since NS_SWIFT_UI_ACTOR seems to imply it) + Virtualization frameworks doesn't change much.

nix-build -A nesting
Building subPackage ./cmd/nesting
# github.com/Code-Hex/vz/v3
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCell.h:11:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSText.h:9:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSView.h:19:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSResponder.h:20:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:15:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSActionCell.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCell.h:98:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:11:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:14:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSUserActivity.h:11:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSDocument.h:88:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:12:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSHelpManager.h:25:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:16:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSAlert.h:44:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:24:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBar.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBarItem.h:26:42: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2), ios(13.0)) NS_SWIFT_UI_ACTOR
                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:24:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSCandidateListTouchBarItem.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTouchBar.h:20:42: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2), ios(13.0)) NS_SWIFT_UI_ACTOR
                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:33:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h:29:122: error: expected ':'
- (void)showSamplerWithSelectionHandler:(void (^)(NSColor * _Nullable selectedColor))selectionHandler NS_SWIFT_ASYNC_NAME(sample());
                                                                                                                         ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSColorSampler.h:29:122: error: expected ';' after method prototype
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:66:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSDocumentController.h:20:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:80:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGestureRecognizer.h:34:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.10)) NS_SWIFT_UI_ACTOR
                            ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:96:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSScrubber.h:70:31: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2)) NS_SWIFT_UI_ACTOR
                              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:98:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSScrubberLayout.h:41:31: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12.2)) NS_SWIFT_UI_ACTOR
                              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:100:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h:19:40: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12), ios(13.0)) NS_SWIFT_UI_ACTOR
                                       ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSSliderAccessory.h:42:40: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12), ios(13.0)) NS_SWIFT_UI_ACTOR
                                       ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:108:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPageLayout.h:17:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:115:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPrintOperation.h:41:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:116:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPrintPanel.h:73:1: error: unknown type name 'NS_SWIFT_UI_ACTOR'
NS_SWIFT_UI_ACTOR
^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:118:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSPDFPanel.h:23:28: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.9)) NS_SWIFT_UI_ACTOR
                           ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:133:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:100:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:123:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSGridView.h:143:29: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(macos(10.12)) NS_SWIFT_UI_ACTOR
                            ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:145:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTrackingSeparatorToolbarItem.h:8:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:15:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbar.h:33:26: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(ios(13.0)) NS_SWIFT_UI_ACTOR
                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:145:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTrackingSeparatorToolbarItem.h:8:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSToolbarItem.h:33:26: error: unknown type name 'NS_SWIFT_UI_ACTOR'
API_AVAILABLE(ios(13.0)) NS_SWIFT_UI_ACTOR
                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:197:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:193:40: error: expected ';' at end of declaration list
@property (nullable, weak) NSView *view NS_SWIFT_UI_ACTOR API_DEPRECATED("", macos(10.0,10.14));
                                       ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:193:41: error: unknown type name 'NS_SWIFT_UI_ACTOR'
@property (nullable, weak) NSView *view NS_SWIFT_UI_ACTOR API_DEPRECATED("", macos(10.0,10.14));
                                        ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:194:58: error: expected ':'
- (void)setView:(nullable NSView *)view NS_SWIFT_UI_ACTOR API_DEPRECATED("Use NSOpenGLView to provide OpenGL content in a Cocoa app.", macos(10.0,10.14));
                                                         ^
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:202:15: error: expected ';' after method prototype
- (void)update NS_SWIFT_UI_ACTOR;
              ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:32:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacGraphicsDisplayConfiguration.h:10:
In file included from /nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/AppKit.h:267:
/nix/store/13v0wf4bvdnpm0ndi89agjx328nvl1ii-apple-framework-AppKit-12.3/Library/Frameworks/AppKit.framework/Headers/NSTextContentManager.h:93:108: error: expected ':'
- (void)performEditingTransactionUsingBlock:(void (NS_NOESCAPE ^) (void))transaction NS_SWIFT_DISABLE_ASYNC;
                                                                                                           ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:37:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSInstaller.h:111:106: error: expected ';' after method prototype
- (void)installWithCompletionHandler:(void(^)(NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(install());
                                                                                                         ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:38:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSRestoreImage.h:45:158: error: expected ';' after method prototype
+ (void)loadFileURL:(NSURL *)fileURL completionHandler:(void (^)(VZMacOSRestoreImage * _Nullable, NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(image(from:));
                                                                                                                                                             ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZMacOSRestoreImage.h:60:153: error: expected ';' after method prototype
+ (void)fetchLatestSupportedWithCompletionHandler:(void (^)(VZMacOSRestoreImage * _Nullable, NSError * _Nullable))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(getter:latestSupported());
                                                                                                                                                        ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:65:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtioSocketDevice.h:55:180: error: expected ';' after method prototype
- (void)connectToPort:(uint32_t)port completionHandler:(void (^)(VZVirtioSocketConnection * _Nullable connection, NSError * _Nullable error))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(connect(toPort:));
                                                                                                                                                                                   ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:74:
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:178:116: error: expected ';' after method prototype
- (void)startWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(start());
                                                                                                                   ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:198:116: error: expected ';' after method prototype
- (void)pauseWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(pause());
                                                                                                                   ^
/nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachine.h:207:117: error: expected ';' after method prototype
- (void)resumeWithCompletionHandler:(void (^)(NSError * _Nullable errorOrNil))completionHandler NS_REFINED_FOR_SWIFT NS_SWIFT_ASYNC_NAME(resume());
                                                                                                                    ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:29:
/nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h:215:241: error: expected ';' after method prototype
- (void)addPersistentStoreWithDescription:(NSPersistentStoreDescription *)storeDescription completionHandler:(void (^)(NSPersistentStoreDescription *, NSError * _Nullable))block API_AVAILABLE(macosx(10.12),ios(10.0),tvos(10.0),watchos(3.0)) NS_SWIFT_DISABLE_ASYNC;
                                                                                                                                                                                                                                                ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:56:
/nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h:42:142: error: expected ':'
- (void)loadPersistentStoresWithCompletionHandler:(void (^)(NSPersistentStoreDescription *, NSError * _Nullable))block NS_SWIFT_DISABLE_ASYNC;
                                                                                                                                             ^
In file included from vendor/github.com/Code-Hex/vz/v3/audio.go:6:
In file included from ./virtualization_11.h:10:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/Virtualization.h:77:
In file included from /nix/store/8blj3gfdr5b9466h23qmp7lw6smvqwws-apple-framework-Virtualization-12.3/Library/Frameworks/Virtualization.framework/Headers/VZVirtualMachineView.h:8:
In file included from /nix/store/8j81hbhlljd9ijr3rpyv54hgr693lapn-apple-framework-Cocoa-12.3/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:14:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/CoreData.h:63:
In file included from /nix/store/6b2r88cqqnkfp4pfwgjshpkwdns9sc4z-apple-framework-CoreData-12.3/Library/Frameworks/CoreData.framework/Headers/NSPersistentCloudKitContainerOptions.h:12:
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:40:171: error: expected ':'
- (void)fetchRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecord * _Nullable record, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(record(for:));
                                                                                                                                                                          ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:40:171: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:42:176: error: expected ':'
- (void)deleteRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecordID * _Nullable recordID, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(deleteRecord(withID:));
                                                                                                                                                                               ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:42:176: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:56:167: error: expected ':'
- (void)fetchAllRecordZonesWithCompletionHandler:(void (^)(NSArray<CKRecordZone *> * _Nullable zones, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(allRecordZones());
                                                                                                                                                                      ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:56:167: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:57:179: error: expected ':'
- (void)fetchRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZone * _Nullable zone, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(recordZone(for:));
                                                                                                                                                                                  ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:57:179: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:59:184: error: expected ':'
- (void)deleteRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZoneID * _Nullable zoneID, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(deleteRecordZone(withID:));
                                                                                                                                                                                       ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:59:184: error: expected ';' after method prototype
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:63:242: error: expected ';' after method prototype
- (void)fetchSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscription * _Nullable subscription, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
                                                                                                                                                                                                                                                 ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:64:222: error: expected ';' after method prototype
- (void)fetchAllSubscriptionsWithCompletionHandler:(void (^)(NSArray<CKSubscription *> * _Nullable subscriptions, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_SWIFT_ASYNC_NAME(allSubscriptions());
                                                                                                                                                                                                                             ^
/nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:66:245: error: expected ';' after method prototype
- (void)deleteSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscriptionID _Nullable subscriptionID, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
                                                                                                                                                                                                                                                    ^
51 errors generated.
error: builder for '/nix/store/7sx5dla6biq3zd9anhild7g8lxqdk870-nesting-0.2.2-dev.drv' failed with exit code 1;
       last 10 log lines:
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:63:242: error: expected ';' after method prototype
       > - (void)fetchSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscription * _Nullable subscription, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
       >                                                                                                                                                                                                                                                  ^
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:64:222: error: expected ';' after method prototype
       > - (void)fetchAllSubscriptionsWithCompletionHandler:(void (^)(NSArray<CKSubscription *> * _Nullable subscriptions, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_SWIFT_ASYNC_NAME(allSubscriptions());
       >                                                                                                                                                                                                                              ^
       > /nix/store/9qlnyydhjqbgbph21rnxmzgh85cp7gyz-apple-framework-CloudKit-12.3/Library/Frameworks/CloudKit.framework/Headers/CKDatabase.h:66:245: error: expected ';' after method prototype
       > - (void)deleteSubscriptionWithID:(CKSubscriptionID)subscriptionID completionHandler:(void (^)(CKSubscriptionID _Nullable subscriptionID, NSError * _Nullable error))completionHandler API_AVAILABLE(macos(10.10), ios(8.0), tvos(9.0), watchos(6.0)) NS_REFINED_FOR_SWIFT_ASYNC(2);
       >                                                                                                                                                                                                                                                     ^
       > 51 errors generated.
       For full logs, run 'nix log /nix/store/7sx5dla6biq3zd9anhild7g8lxqdk870-nesting-0.2.2-dev.drv'.

@commiterate
Copy link
Contributor Author

commiterate commented Aug 30, 2024

Some of these symbols seem to require Xcode 13. In particular, a quick search for NS_SWIFT_DISABLE_ASYNC surfaces the Xcode 13 release notes.

https://developer.apple.com/documentation/xcode-release-notes/xcode-13-release-notes#New-Features

To support the new Swift concurrency model, clang can now warn if you call a completion handler more than once or if an execution path doesn’t have a completion handler call. To turn on the new warning, in your project’s Build Settings in the Apple Clang - Warnings - All languages section, select Yes from the Completion Handler Misuse pop-up menu; alternatively, when invoking clang from the command line, pass the -Wcompletion-handler flag. You can suppress the warning for a method by adding the NS_SWIFT_DISABLE_ASYNC attribute to the method, which also suppresses the translation of this method into an async method in Swift. (10708075)

Likewise a quick search for NS_SWIFT_ASYNC_NAME points to a Swift 6 concurrency migration guide.

https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/incrementaladoption#CObjective-C

When working with a project that can import Foundation, the following annotation macros are available in NSObjCRuntime.h:

NS_SWIFT_SENDABLE
NS_SWIFT_NONSENDABLE
NS_SWIFT_NONISOLATED
NS_SWIFT_UI_ACTOR
NS_SWIFT_SENDING


NS_SWIFT_DISABLE_ASYNC
NS_SWIFT_ASYNC(COMPLETION_BLOCK_INDEX)
NS_REFINED_FOR_SWIFT_ASYNC(COMPLETION_BLOCK_INDEX)
NS_SWIFT_ASYNC_NAME
NS_SWIFT_ASYNC_NOTHROW
NS_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)

For apple_sdk_12_3, Virtualization already depends on Foundation so this seems to also point towards requiring a newer Xcode version.

@commiterate
Copy link
Contributor Author

commiterate commented Aug 30, 2024

Newer apple_sdk versions in Nix might be waiting on this refactor?

#242666 (comment)


To summarize, this package will need the following to work on Darwin:

  1. A newer nesting version to get a newer version of gvisor (prevents Go files from being excluded which resulted in no binary).
  2. A newer apple_sdk version (should have at least Xcode 13, but newer would be preferred).

Neither exist yet. Once they do, however, we can update the package definition and potentially move this PR out of draft.


Edit: PR tracking for the apple_sdk refactor.

https://nixpk.gs/pr-tracker.html?pr=346043

@commiterate commiterate force-pushed the init/nesting branch 2 times, most recently from 07ea8fd to 1db08bd Compare August 30, 2024 05:28
@commiterate
Copy link
Contributor Author

commiterate commented Nov 2, 2024

apple-sdk refactor is now in master. Local build with the latest unreleased nesting commit works now.

pkgs/by-name/ne/nesting/package.nix

{
  lib,
  # Need macOS 15+ for nested virtualization.
  apple-sdk_15,
  buildGoModule,
  fetchFromGitLab,
  nix-update-script,
  stdenv,
  versionCheckHook,
}:

buildGoModule rec {
  pname = "nesting";
  version = "0.2.2-dev";

  src = fetchFromGitLab {
    owner = "gitlab-org/fleeting";
    repo = "nesting";
    rev = "72e7d53e8567d950e4d29fd1f2e94507e92b482e";
    hash = "sha256-p9al3N5DdNC/e/DF5M9RgJgYOnNfHTyt47vP2rTe7I8=";
  };

  vendorHash = "sha256-3c2qemiBwiXTHIu52YOr9yAZLDQuhdthvvhMgfK7EZc=";

  subPackages = [ "cmd/nesting" ];

  # See https://gitlab.com/gitlab-org/fleeting/nesting/-/blob/v0.2.1/Makefile?ref_type=tags#L22-24.
  #
  # Needed for "nesting version" to not show "dev".
  ldflags =
    let
      # See https://gitlab.com/gitlab-org/fleeting/nesting/-/blob/v0.2.1/Makefile?ref_type=tags#L18.
      #
      # Couldn't find a way to substitute "go list ." into "ldflags".
      ldflagsPackageVariablePrefix = "gitlab.com/gitlab-org/fleeting/nesting";
    in
    [
      "-X ${ldflagsPackageVariablePrefix}.NAME=nesting"
      "-X ${ldflagsPackageVariablePrefix}.VERSION=v${version}"
      "-X ${ldflagsPackageVariablePrefix}.REVISION=${src.rev}"
    ];

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_15 ];

  doInstallCheck = true;

  nativeInstallCheckInputs = [ versionCheckHook ];

  versionCheckProgram = "${builtins.placeholder "out"}/bin/${meta.mainProgram}";

  versionCheckProgramArg = "version";

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Basic and opinionated daemon that sits in front of virtualization platforms";
    homepage = "https://gitlab.com/gitlab-org/fleeting/nesting";
    license = lib.licenses.mit;
    mainProgram = "nesting";
    # TODO: Find maintainer(s).
    maintainers = with lib.maintainers; [ ];
  };
}

nix-build -A nesting

# On aarch64-darwin.
...
Running phase: installCheckPhase
Executing versionCheckPhase
Successfully managed to find version 0.2.2-dev in the output of the command /nix/store/3l0jj8kxaqfq9ma69fzmcz7mc29lz5nb-nesting-0.2.2-dev/bin/nesting version
Name:         nesting
Version:      v0.2.2-dev
Git revision: 72e7d53e8567d950e4d29fd1f2e94507e92b482e
Git ref:      HEAD
GO version:   go1.23.2
Built:        now
OS/Arch:      darwin/arm64
Finished versionCheckPhase
no Makefile or custom installCheckPhase, doing nothing
/nix/store/3l0jj8kxaqfq9ma69fzmcz7mc29lz5nb-nesting-0.2.2-dev

The minimum required Apple SDK version isn't documented for nesting, but Tart (the hypervisor used for GitLab Runners on macOS nested VMs) requests at least 15.0.

https://github.com/cirruslabs/tart/blob/3fb8069edd2fcd4e881d42000e3de1188af8d695/CONTRIBUTING.md

Granted, that doesn't really have any bearing on nesting since nesting communicates with Tart over a Unix socket.

Code-Hex/vz (used by nesting) requires at least 11.0 and supports up to 15.0+.

https://github.com/Code-Hex/vz/tree/8aa9759a535a4648035a5dba5cee844ba1dfcaa0

At least 15.0 is required for nested virtualization though.

Code-Hex/vz@900e8e6

This is because nested virtualization was introduced in macOS 15.


Need to ask upstream to bump go.mod versions again and publish a new release.

@commiterate
Copy link
Contributor Author

@commiterate commiterate force-pushed the init/nesting branch 2 times, most recently from 477d5e2 to acd668d Compare November 9, 2024 23:32
@commiterate commiterate force-pushed the init/nesting branch 3 times, most recently from 07ec4fe to 0e0ba5e Compare November 21, 2024 18:25
@commiterate
Copy link
Contributor Author

MR to upstream for bumping versions: https://gitlab.com/gitlab-org/fleeting/nesting/-/merge_requests/15

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

Successfully merging this pull request may close these issues.

3 participants