yggdrasil: init at 0.3.8
This commit is contained in:
committed by
Emery Hemingway
parent
9c4f137f16
commit
3cc9bcb338
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user