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

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

39 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2019-06-27 15:54:01 +00:00
buildGoModule rec {
pname = "yggdrasil";
2022-11-21 03:58:11 +00:00
version = "0.4.7";
2019-06-27 15:54:01 +00:00
src = fetchFromGitHub {
owner = "yggdrasil-network";
repo = "yggdrasil-go";
rev = "v${version}";
2022-11-21 03:58:11 +00:00
sha256 = "sha256-01ciAutRIn4DmqlvDTXhRiuZHTtF8b6js7SUrLOjtAY=";
2019-06-27 15:54:01 +00:00
};
2022-11-21 03:58:11 +00:00
vendorSha256 = "sha256-hwDi59Yp92eMDqA8OD56nxsKSX2ngxs0lYdmEMLX+Oc=";
2019-06-27 15:54:01 +00:00
# Change the default location of the management socket on Linux
# systems so that the yggdrasil system service unit does not have to
# be granted write permission to /run.
patches = [ ./change-runtime-dir.patch ];
2021-10-11 22:04:27 +00:00
subPackages = [ "cmd/genkeys" "cmd/yggdrasil" "cmd/yggdrasilctl" ];
2019-06-27 15:54:01 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [
"-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildVersion=${version}"
"-X github.com/yggdrasil-network/yggdrasil-go/src/version.buildName=${pname}"
"-s" "-w"
];
2019-06-27 15:54:01 +00:00
passthru.tests.basic = nixosTests.yggdrasil;
meta = with lib; {
2020-03-12 16:07:00 +00:00
description =
"An experiment in scalable routing as an encrypted IPv6 overlay network";
2019-06-27 15:54:01 +00:00
homepage = "https://yggdrasil-network.github.io/";
license = licenses.lgpl3;
2021-11-04 02:58:46 +00:00
maintainers = with maintainers; [ bbigras ehmry gazally lassulus ];
2019-06-27 15:54:01 +00:00
};
}