3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/boringtun/default.nix

29 lines
857 B
Nix
Raw Normal View History

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