An SMTP client and server library for Zig implementing RFC 5321.
1.0 kB
49 lines
1# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us>
2# SPDX-License-Identifier: MIT
3
4{
5 description = "";
6
7 inputs = {
8 nixpkgs = {
9 url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst";
10 };
11 };
12
13 outputs =
14 {
15 nixpkgs,
16 ...
17 }:
18 let
19 inherit (nixpkgs) lib;
20 linuxSystems = builtins.filter (
21 system: (lib.systems.elaborate system).isLinux
22 ) lib.systems.flakeExposed;
23 makePackages =
24 system:
25 import nixpkgs {
26 inherit system;
27 };
28 forAllSystems = lib.genAttrs linuxSystems;
29 in
30 {
31 devShells = forAllSystems (
32 system:
33 let
34 pkgs = makePackages system;
35 in
36 {
37 default = pkgs.mkShell {
38 name = "zsmtp";
39 nativeBuildInputs = [
40 pkgs.kcov
41 pkgs.radicle-node
42 pkgs.reuse
43 pkgs.zig_0_16
44 ];
45 };
46 }
47 );
48 };
49}