mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 11:02:19 +00:00
44 lines
851 B
Nix
44 lines
851 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage {
|
|
pname = "sandbox-agent";
|
|
version = "0.5.0-rc.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rivet-dev";
|
|
repo = "sandbox-agent";
|
|
rev = "v0.5.0-rc.1";
|
|
hash = "sha256-oeOpWjaQlQZZzwQGts4yJgL3STDCd3Hz2qbOJ4N2HBM=";
|
|
};
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
prePatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
cargoBuildFlags = [
|
|
"-p"
|
|
"sandbox-agent"
|
|
];
|
|
|
|
env.SANDBOX_AGENT_SKIP_INSPECTOR = "1";
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Universal API for coding agents in sandboxes";
|
|
homepage = "https://sandboxagent.dev";
|
|
license = licenses.asl20;
|
|
mainProgram = "sandbox-agent";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|