Something went wrong. Try again.
Converts the dependencies in a Zig build.zig.zon into a Nix expression, so Zig projects build under Nix without network access.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940// SPDX-FileCopyrightText: 2025 Jeffrey C. Ollie <jeff@ocjtech.us>//// SPDX-License-Identifier: MIT
const std = @import("std");
pub const BuildZigZon = @import("BuildZigZon.zig");pub const Dep = @import("Dep.zig");pub const Deps = @import("Deps.zig");pub const ZigPackage = @import("ZigPackage.zig");pub const nix = @import("nix.zig");
pub fn streamer(in: *std.Io.Reader, out: *std.Io.Writer) !void { _ = try in.streamRemaining(out); try out.flush();}
pub const Style = enum { git, http, file, other,
const map: std.StaticStringMap(Style) = .initComptime(&.{ .{ "git+https", .git }, .{ "git+http", .git }, .{ "https", .http }, .{ "http", .http }, .{ "file", .file }, });
pub fn init(scheme: []const u8) Style { return map.get(scheme) orelse .other; }};
test { std.testing.refAllDecls(@This());}