add nix build file

This commit is contained in:
2024-10-15 15:15:54 +02:00
parent 2c305134e6
commit 042e8299f1
4 changed files with 12 additions and 42 deletions

4
Cargo.lock generated
View File

@@ -362,9 +362,9 @@ dependencies = [
[[package]]
name = "rustls-pki-types"
version = "1.9.0"
version = "1.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55"
checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b"
[[package]]
name = "rustls-webpki"

View File

@@ -16,8 +16,16 @@ let
ed25519_agent = callPackage "${harness}/default.nix" { inherit pkgs; agent = ed25519_agent_lib; };
in
mkShell {
name = "agent-test";
rustPlatform.buildRustPackage {
name = "tls-server";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"agent_lib-0.1.0" = "sha256-6hKSZxh7nVOlSKA/0mhbGPaJ1PJnVyd33Yc8fOuRfwA=";
"shared_memory_heap-0.1.0" = "sha256-aQ7dKzU5Lf6bFArAO7b4QDYC7Lt2vG5ggHpq2R9s9Qo=";
};
};
ED25519_AGENT_PATH = "${ed25519_agent}/bin/agent_harness";
ED25519_KEYFILE = "./keyfile";

26
flake.lock generated
View File

@@ -1,26 +0,0 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1728018373,
"narHash": "sha256-NOiTvBbRLIOe5F6RbHaAh6++BNjsb149fGZd1T4+KBg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bc947f541ae55e999ffdb4013441347d83b00feb",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -1,12 +0,0 @@
{
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.callPackage ./shell.nix { inherit pkgs; };
};
}