Something went wrong. Try again.
Reading, writing and creating MIME and RFC 5322 email messages in Zig.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
{ lib, stdenv, callPackage, zig_0_17,}:let # Generated from build.zig.zon by zon2nix; regenerate with # nix develop -c zon2nix --17 --nix=build.zig.zon.nix build.zig.zon zigDeps = callPackage ./build.zig.zon.nix { };instdenv.mkDerivation (finalAttrs: { pname = "zig-mime"; version = "0.4.1";
# Named rather than filtered, so that editing something outside this list -- # the flake, a scratch file, the README -- does not rebuild the package. src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./build.zig ./build.zig.zon ./build.zig.zon.nix ./src ./tests ./tools ./LICENSES ./README.md ./REUSE.toml ]; };
nativeBuildInputs = [ zig_0_17 ];
# `--system` does not merely offer the directory, it forbids fetching: a # dependency missing from it is a build error naming the package rather than # a silent attempt to reach a network the sandbox does not have. zigBuildFlags = [ "--system" "${zigDeps}" ]; # The check phase assembles its own flags rather than reusing the build's, # so without this `zig build test` runs without --system and tries to fetch. zigCheckFlags = finalAttrs.zigBuildFlags;
# Every test in this project is a pure function over bytes, so there is # nothing the build sandbox withholds. doCheck = true;
meta = { description = "A MIME and RFC 5322 email message library for Zig"; homepage = "https://git.jcollie.dev/jeff/zig-mime"; license = lib.licenses.mit; mainProgram = "zig-mime"; platforms = lib.platforms.unix; };})