Add nix derivation
This commit is contained in:
21
default.nix
Normal file
21
default.nix
Normal 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=";
|
||||
}
|
||||
Reference in New Issue
Block a user