nixpkgs/pkgs/tools/networking/boringtun/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
857 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
2019-04-12 11:25:26 +02:00
rustPlatform.buildRustPackage rec {
pname = "boringtun";
2022-07-24 12:49:15 +02:00
version = "0.5.2";
2019-04-12 11:25:26 +02:00
src = fetchFromGitHub {
owner = "cloudflare";
repo = pname;
2022-07-16 05:57:19 +02:00
rev = "boringtun-cli-${version}";
2022-07-24 12:49:15 +02:00
sha256 = "sha256-PY7yqBNR4CYh8Y/vk4TYxxJnnv0eig8sjXp4dR4CX04=";
2019-04-12 11:25:26 +02:00
};
2022-07-24 12:49:15 +02:00
cargoSha256 = "sha256-WFKlfuZGVU5KA57ZYjsIrIwE4B5TeaU5IKt9BNEnWyY=";
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;
meta = with lib; {
2019-04-12 11:25:26 +02:00
description = "Userspace WireGuard® implementation in Rust";
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;
};
}