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