agent-safehouse: init at 0.10.1 (#500211)

This commit is contained in:
Oleksii Filonenko
2026-07-13 01:44:32 +00:00
committed by GitHub

View File

@@ -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 ];
};
}