2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nebula";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.8.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackhq";
|
|
|
|
repo = pname;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-tbzdbI4QTLQcJ6kyD3c+jQvXn9ERV/9hrzNPXV9XwVM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
vendorHash = "sha256-BL9Tx87pBZIAuoneu6Sm2gjyTTC6yOZv5GVYNNeuhtw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/nebula" "cmd/nebula-cert" ];
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-X main.Build=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) nebula;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Overlay networking tool with a focus on performance, simplicity and security";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Nebula is a scalable overlay networking tool with a focus on performance,
|
|
|
|
simplicity and security. It lets you seamlessly connect computers
|
|
|
|
anywhere in the world. Nebula is portable, and runs on Linux, OSX, and
|
|
|
|
Windows. (Also: keep this quiet, but we have an early prototype running
|
|
|
|
on iOS). It can be used to connect a small number of computers, but is
|
|
|
|
also able to connect tens of thousands of computers.
|
|
|
|
|
|
|
|
Nebula incorporates a number of existing concepts like encryption,
|
|
|
|
security groups, certificates, and tunneling, and each of those
|
|
|
|
individual pieces existed before Nebula in various forms. What makes
|
|
|
|
Nebula different to existing offerings is that it brings all of these
|
|
|
|
ideas together, resulting in a sum that is greater than its individual
|
|
|
|
parts.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/slackhq/nebula";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/slackhq/nebula/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-01-03 16:56:52 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne numinit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|