nixpkgs/pkgs/by-name/bo/boringtun/package.nix

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

30 lines
896 B
Nix
Raw Normal View History

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