36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ pkgs ? import <nixpkgs> { } }:
|
|
with pkgs;
|
|
let
|
|
ed25519_agent_lib = callPackage "${fetchgit {
|
|
url = "https://gitea.rixxc.de/rixxc/ed25519_agent.git";
|
|
rev = "d2ae2cd9142671a8e13d6f133b8d5429e507cd78";
|
|
hash = "sha256-hKKzsRY7IvM4eq8ybWZ5Z/ix7Oaohvcz6qngM+jGIgU=";
|
|
}}/default.nix"
|
|
{ inherit pkgs; };
|
|
|
|
harness = fetchgit {
|
|
url = "https://gitea.rixxc.de/rixxc/agent_harness.git";
|
|
rev = "f7720356f3db3bdf2b115e13afe521ba06c10fe1";
|
|
hash = "sha256-6FTNByDZp9DRukuMQrlsrbouSytrllfdrULhS7UMwqs=";
|
|
};
|
|
|
|
ed25519_agent = callPackage "${harness}/default.nix" { inherit pkgs; agent = ed25519_agent_lib; };
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
name = "tls-server";
|
|
src = nix-gitignore.gitignoreSource [ ] ./.;
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"agent_lib-0.1.0" = "sha256-6hKSZxh7nVOlSKA/0mhbGPaJ1PJnVyd33Yc8fOuRfwA=";
|
|
"shared_memory_heap-0.1.0" = "sha256-aQ7dKzU5Lf6bFArAO7b4QDYC7Lt2vG5ggHpq2R9s9Qo=";
|
|
};
|
|
};
|
|
|
|
RUSTC_BOOTSTRAP = true;
|
|
|
|
ED25519_AGENT_PATH = "${ed25519_agent}/bin/agent_harness";
|
|
ED25519_KEYFILE = "./keyfile";
|
|
}
|