Files
slop-broker/nix/package.nix
T
jackos1998andClaude Opus 5.5 076f4959d9 web: Add approvals web app
A web app lists pending requests with full detail, leases and the
audit log grouped by request, and sends Web Push notifications that can
answer requests. Approvers sign in through an OpenID Connect provider;
policy can require a fresh passkey (`confirm = "passkey"`) to approve,
which only the web app can then give.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:39:36 +00:00

31 lines
870 B
Nix

{ lib, rustPlatform, pkg-config, openssl, sqlite }:
let
inherit (lib.fileset) toSource unions;
in
rustPlatform.buildRustPackage {
pname = "slop-broker";
version = "0.1.0";
src = toSource {
root = ../.;
fileset = unions [ ../Cargo.toml ../Cargo.lock ../askama.toml ../src ../templates ../tests ../slop-tools.md ];
};
cargoLock.lockFile = ../Cargo.lock;
# OpenSSL for Web Push's payload encryption, SQLite for the web app's sessions
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl sqlite ];
postInstall = ''
ln -s slop-broker $out/bin/slop-approve
install -Dm644 slop-tools.md $out/share/slop-broker/slop-tools.md
'';
meta = {
description = "Approval broker that runs privileged operations for coding agents";
license = lib.licenses.mit;
mainProgram = "slop";
platforms = lib.platforms.linux;
};
}