Something went wrong. Try again.
FTP for Zig 0.16: a client, a server, and the wire protocol as a layer you can use on its own, all built on std.Io.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445# SPDX-FileCopyrightText: © 2026 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
{ lib, stdenv, zig_0_16,}:
stdenv.mkDerivation { pname = "zig-ftp"; version = "0.1.0";
# Named rather than filtered, so that editing something outside this list -- # the flake, a scratch file, the NixOS tests that consume the result -- does # not rebuild the package and, in the tests, the whole virtual machine. src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./build.zig ./build.zig.zon ./src ./tests ./LICENSES ./README.md ./REUSE.toml ]; };
nativeBuildInputs = [ zig_0_16.hook ];
# `zig build test` here rather than only in CI: the unit tests are pure, and # the end-to-end ones only need a loopback socket, which the build sandbox # has. doCheck = true;
meta = { description = "An FTP client and server library for Zig"; homepage = "https://git.jcollie.dev/jeff/zig-ftp"; license = lib.licenses.mit; mainProgram = "zig-ftp"; platforms = lib.platforms.unix; };}