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