2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
2019-04-12 09:25:26 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "boringtun";
|
2022-07-24 10:49:15 +00:00
|
|
|
version = "0.5.2";
|
2019-04-12 09:25:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudflare";
|
|
|
|
repo = pname;
|
2022-07-16 03:57:19 +00:00
|
|
|
rev = "boringtun-cli-${version}";
|
2022-07-24 10:49:15 +00:00
|
|
|
sha256 = "sha256-PY7yqBNR4CYh8Y/vk4TYxxJnnv0eig8sjXp4dR4CX04=";
|
2019-04-12 09:25:26 +00:00
|
|
|
};
|
|
|
|
|
2024-07-02 09:04:59 +00:00
|
|
|
cargoHash = "sha256-WFKlfuZGVU5KA57ZYjsIrIwE4B5TeaU5IKt9BNEnWyY=";
|
2019-04-12 09:25:26 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
|
2019-09-17 12:24:04 +00:00
|
|
|
|
2019-04-12 09:25:26 +00:00
|
|
|
# Testing this project requires sudo, Docker and network access, etc.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-12 09:25:26 +00:00
|
|
|
description = "Userspace WireGuard® implementation in Rust";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/cloudflare/boringtun";
|
2019-04-12 09:25:26 +00:00
|
|
|
license = licenses.bsd3;
|
2024-04-24 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
2019-04-12 09:25:26 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "boringtun-cli";
|
2019-04-12 09:25:26 +00:00
|
|
|
};
|
|
|
|
}
|