Add nix derivation

This commit is contained in:
2024-04-22 14:58:27 +02:00
parent 1426ca892a
commit 308babc3ab
4 changed files with 42 additions and 22 deletions

21
default.nix Normal file
View File

@@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
let
agent_src = fetchgit {
url = "https://gitea.rixxc.de/rixxc/x25519_agent.git";
rev = "ae00fd66ece00510799cdf0397d905f2bdee2956";
hash = "sha256-vq3fNjeDCYUVJceyWCqszFDHk/GhLVhE/WeG50RoWZs=";
};
agent = callPackage "${agent_src}/default.nix" { };
in
rustPlatform.buildRustPackage {
name = "agent-harness";
src = nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ cargo rustc ];
buildInputs = [ agent ];
cargoSha256 = "sha256-ZgwQr1goz9yPws0P1eQwhHEv2WbcJeTCLEPYOUADOtE=";
}