fn pkgHashFromBuildZig(comptime build_zig: type) ?[]const u8
fn pkgHashFromBuildZig(comptime build_zig: type) ?[]const u8 { const deps = @import("root").dependencies; return comptime for (@typeInfo(deps.packages).@"struct".decl_names) |pkg_hash| { const pkg = @field(deps.packages, pkg_hash); if (@hasDecl(pkg, "build_zig") and pkg.build_zig == build_zig) break pkg_hash; } else null; }