NativeAOT in .NET 9 and Nixpkgs/darwin

When nixpkgs was at commit af51545ec9a44eadf3fe3547610a5cdd882bc34e, the following sufficed for dotnet publish --self-contained --configuration Release to Just Work to build a <PublishAot>true</PublishAot> executable on aarch64-darwin:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
    outputs = { nixpkgs, ... }:
    let pkgs = nixpkgs.legacyPackages.aarch64-darwin; in
    {
        devShell = pkgs.mkShell {
            buildInputs = [ pkgs.dotnetCorePackages.sdk_9_0 ];
            packages = [
              pkgs.clang
              pkgs.darwin.ICU
              pkgs.darwin.binutils
            ];
        }
    }
}