yggdrasil: init at 0.3.8

This commit is contained in:
Gemini Lasswell
2019-10-26 13:51:31 +02:00
committed by Emery Hemingway
parent 9c4f137f16
commit 3cc9bcb338
3 changed files with 51 additions and 0 deletions
@@ -0,0 +1,37 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "yggdrasil";
version = "0.3.8";
src = fetchFromGitHub {
owner = "yggdrasil-network";
repo = "yggdrasil-go";
rev = "v${version}";
sha256 = "1jkbfx6mnzqqcqmdmll7bb44d94xa5iam704dpm2jmyk5pcvdhld";
};
modSha256 = "0pjhr8ys05az4xryv9pxgzlsrqvghxn281a49g26xhsxp5pg1z32";
# 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 ];
subPackages = [ "cmd/yggdrasil" "cmd/yggdrasilctl" ];
buildFlagsArray = ''
-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
'';
meta = with lib; {
description = "An experiment in scalable routing as an encrypted IPv6 overlay network";
homepage = "https://yggdrasil-network.github.io/";
license = licenses.lgpl3;
platforms = platforms.all;
maintainers = with maintainers; [ gazally lassulus ];
};
}