From aac345d252c9b9bf6aad461c4eadbba96971f29e Mon Sep 17 00:00:00 2001 From: Myzel394 Date: Mon, 25 May 2026 22:43:02 +0200 Subject: [PATCH] agent-safehouse: init at 0.10.1 --- pkgs/by-name/ag/agent-safehouse/package.nix | 48 +++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/ag/agent-safehouse/package.nix diff --git a/pkgs/by-name/ag/agent-safehouse/package.nix b/pkgs/by-name/ag/agent-safehouse/package.nix new file mode 100644 index 000000000000..ca43776cf6ec --- /dev/null +++ b/pkgs/by-name/ag/agent-safehouse/package.nix @@ -0,0 +1,48 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + nix-update-script, +}: + +stdenvNoCC.mkDerivation rec { + pname = "safehouse"; + version = "0.10.1"; + + src = fetchFromGitHub { + owner = "eugene1g"; + repo = "agent-safehouse"; + rev = "v" + version; + hash = "sha256-Nm04UnyQ2mVLkIIEspDd2vbdcJxZ17MH07fW6PvokJI="; + }; + + postPatch = "patchShebangs scripts bin"; + + strictDeps = true; + __structuredAttrs = true; + + passthru.updateScript = nix-update-script { }; + + buildPhase = '' + runHook preBuild + scripts/generate-dist.sh + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + install -Dm755 dist/safehouse.sh $out/bin/safehouse + + runHook postInstall + ''; + + meta = { + description = "Sandbox your local AI agents so they can read/write only what they need"; + homepage = "https://github.com/eugene1g/agent-safehouse"; + mainProgram = "safehouse"; + license = lib.licenses.asl20; + platforms = lib.platforms.darwin; + maintainers = with lib.maintainers; [ myzel394 ]; + }; +}