blob: c8aa82dedf76b8caf504b66b7107787c2ace5f81 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "boringtun";
version = "0.6.0";
src = fetchFromGitHub {
owner = "cloudflare";
repo = "boringtun";
tag = "boringtun-${finalAttrs.version}";
hash = "sha256-QrgKO0SVU4Z9GlNtZZmOV+Xcm1PonzLbUTGAFFOV/BM=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-j1I16QC46MMxcK7rbZJgI8KiKJvF29hkuGKiYLc6uW0=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
# Testing this project requires sudo, Docker and network access, etc.
doCheck = false;
meta = {
description = "Userspace WireGuard® implementation in Rust";
homepage = "https://github.com/cloudflare/boringtun";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ xrelkd ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
mainProgram = "boringtun-cli";
};
})
|