An SMTP client and server library for Zig implementing RFC 5321.
0

Configure Feed

Select the types of activity you want to include in your feed.

zig-smtp / nix / package.nix
1.0 kB 46 lines
1# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us> 2# SPDX-License-Identifier: MIT 3 4{ 5 lib, 6 stdenv, 7 callPackage, 8 zig_0_16, 9}: 10let 11 # Generated by zon2nix from build.zig.zon; regenerate with: 12 # nix run github:jcollie/zon2nix#zon2nix -- --nix=build.zig.zon.nix --16 build.zig.zon 13 zigDeps = callPackage ../build.zig.zon.nix { }; 14in 15stdenv.mkDerivation { 16 pname = "zsmtp"; 17 version = "0.0.0"; 18 19 src = lib.cleanSource ../.; 20 21 nativeBuildInputs = [ zig_0_16 ]; 22 23 dontConfigure = true; 24 25 buildPhase = '' 26 runHook preBuild 27 export ZIG_GLOBAL_CACHE_DIR=$TMPDIR/zig-global-cache 28 zig build install -Doptimize=ReleaseSafe --prefix $out --system ${zigDeps} 29 runHook postBuild 30 ''; 31 32 doCheck = true; 33 checkPhase = '' 34 runHook preCheck 35 zig build test --system ${zigDeps} 36 runHook postCheck 37 ''; 38 39 dontInstall = true; 40 41 meta = { 42 description = "SMTP client and server library for Zig"; 43 license = lib.licenses.mit; 44 mainProgram = "zsmtp"; 45 }; 46}