mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
agent-safehouse: init at 0.10.1 (#500211)
This commit is contained in:
48
pkgs/by-name/ag/agent-safehouse/package.nix
Normal file
48
pkgs/by-name/ag/agent-safehouse/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user