Files
agent_harness/default.nix
2024-08-23 13:21:20 +02:00

22 lines
564 B
Nix

{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
agent_src = fetchgit {
url = "https://gitea.rixxc.de/rixxc/x25519_agent.git";
rev = "201f270624487ded538b63cc5416456bd5b8ba18";
hash = "sha256-KPaKG+t3qSMy4Y7fd0PlBWZiZYcs7M1Clmn75emC9LU=";
};
agent = callPackage "${agent_src}/default.nix" { };
in
rustPlatform.buildRustPackage {
name = "agent-harness";
src = nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ cargo rustc ];
buildInputs = [ agent ];
cargoSha256 = "sha256-ZgwQr1goz9yPws0P1eQwhHEv2WbcJeTCLEPYOUADOtE=";
}