Files
agent_harness/default.nix
2024-04-23 13:36:02 +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 = "989d49507eff7ee860fb27b6ed94f91a5d5a6199";
hash = "sha256-8M8tsjSoGfu8PGoyDaV64eUDjFL/uefdo/EBS6aL6hg=";
};
agent = callPackage "${agent_src}/default.nix" { };
in
rustPlatform.buildRustPackage {
name = "agent-harness";
src = nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ cargo rustc ];
buildInputs = [ agent ];
cargoSha256 = "sha256-ZgwQr1goz9yPws0P1eQwhHEv2WbcJeTCLEPYOUADOtE=";
}