Files
agent_harness/default.nix
2024-04-23 12:39:01 +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 = "8671550a5d028b0e59fe20aff5fe49ff55fdff22";
hash = "sha256-RRKRVWZpXf5wnNNiMcVwhlkPpmZxFZC/7i9NjQ8KAxc=";
};
agent = callPackage "${agent_src}/default.nix" { };
in
rustPlatform.buildRustPackage {
name = "agent-harness";
src = nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ cargo rustc ];
buildInputs = [ agent ];
cargoSha256 = "sha256-ZgwQr1goz9yPws0P1eQwhHEv2WbcJeTCLEPYOUADOtE=";
}