# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie # SPDX-License-Identifier: MIT # The project-local Zig package directory (zig-pkg/) as a derivation, so # builds can run without Zig fetching anything over the network. Only the # files listed in each dependency's `paths` may be present, since Zig # hashes the package contents against the directory name. { runCommand, fetchzip, }: let # Must match the url/hash pinned in build.zig.zon. tlsDep = fetchzip { name = "tls.zig-src"; url = "https://github.com/ianic/tls.zig/archive/e04ae448ce7ee70c136d4d48b059314543203809.tar.gz"; hash = "sha256-afPTfauIV49IATX0szuOdKLloyqI4XKsyNk8KkasAvg="; }; tlsDepId = "tls-0.1.0-ER2e0jGpBgCkVC-Yp12NgSdHNUtZr52MleJ8roHlUa54"; in runCommand "zsmtp-zig-pkg" { } '' mkdir -p $out/${tlsDepId} cp -r ${tlsDep}/{build.zig,build.zig.zon,readme.md,src} $out/${tlsDepId}/ ''