22 lines
564 B
Nix
22 lines
564 B
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
with pkgs;
|
|
let
|
|
agent_src = fetchgit {
|
|
url = "https://gitea.rixxc.de/rixxc/x25519_agent.git";
|
|
rev = "36ae72a8d90d94b5b0d1fd01adf50a33edd80e80";
|
|
hash = "sha256-SxXZ/1CRi4J6Neq1uXIbue0bFa8WzdXPBnoXCjekOy8=";
|
|
};
|
|
|
|
agent = callPackage "${agent_src}/default.nix" { };
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
name = "agent-harness";
|
|
src = nix-gitignore.gitignoreSource [ ] ./.;
|
|
|
|
nativeBuildInputs = [ cargo rustc ];
|
|
|
|
buildInputs = [ agent ];
|
|
|
|
cargoSha256 = "sha256-ZgwQr1goz9yPws0P1eQwhHEv2WbcJeTCLEPYOUADOtE=";
|
|
}
|