Something went wrong. Try again.
A Zig library for writing structured log messages directly to the systemd journal over its native datagram socket.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647# SPDX-FileCopyrightText: © 2024 Jeffrey C. Ollie <jeff@ocjtech.us># SPDX-License-Identifier: MIT
{ lib, stdenv, zig_0_17,}:
stdenv.mkDerivation (finalAttrs: { pname = "journalz"; version = "0.2.0";
# Named rather than `./.` so that editing the flake, the README or the # NixOS tests does not rebuild the package and every virtual machine that # installs it. src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./build.zig ./build.zig.zon ./src ./examples ./tests/e2e.zig # `zig build test` covers the documentation server too, so the check # phase needs it even though the package does not install it. ./tools ]; };
nativeBuildInputs = [ zig_0_17 ];
# The unit tests talk to a fake journal of their own rather than the # machine's, so they run inside the build sandbox, where there is no # systemd to talk to. doCheck = true;
meta = { description = "Zig library for writing structured log messages to the systemd journal"; homepage = "https://git.jcollie.dev/jeff/journalz"; license = lib.licenses.mit; maintainers = [ ]; platforms = lib.platforms.linux; mainProgram = "journalz-e2e"; };})