Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, stdenv, zig_0_16, src,}:# The provide-usage CLI: a pure Zig core the daemon drives one round at a# time (see robot-docs/usage-feed.md). Pinned by the flake input, built with# the toolchain its build.zig.zon demands.stdenv.mkDerivation { pname = "usage-core"; version = "0.1.0"; inherit src; # The knot serves the archive with a query string, so the store path has # no extension for unpackPhase to sniff: one explicit tar it is. unpackPhase = '' runHook preUnpack tar -xzf $src runHook postUnpack ''; sourceRoot = "provide-usage-main"; nativeBuildInputs = [zig_0_16]; # The build.zig ranlib step hardcodes zig-out, so the default prefix it is # (no --prefix): artifacts are copied out in installPhase instead. buildPhase = '' runHook preBuild export HOME="$TMPDIR/home" zig build -Dcpu=baseline --cache-dir "$TMPDIR/zig-cache" --global-cache-dir "$TMPDIR/zig-global-cache" runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p $out/bin cp zig-out/bin/usage $out/bin/usage runHook postInstall ''; meta = { description = "stateless provider usage and quota core with a CLI"; mainProgram = "usage"; platforms = lib.platforms.unix; };}