amneziawg-go: init at 0.2.12 (#331574)

This commit is contained in:
Aleksana 2024-10-30 17:07:33 +08:00 committed by GitHub
commit 5308aeaefa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,44 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule rec {
pname = "amneziawg-go";
version = "0.2.12";
src = fetchFromGitHub {
owner = "amnezia-vpn";
repo = "amneziawg-go";
rev = "v${version}";
hash = "sha256-Xw2maGmNnx0+GO3OWS1Gu77oB9wh2dv+WobypQotUMA=";
};
postPatch = ''
# Skip formatting tests
rm -f format_test.go
'';
vendorHash = "sha256-zXd9PK3fpOx/YjCNs2auZWhbLUk2fO6tyLV5FxAH0us=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
];
strictDeps = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Userspace Go implementation of AmneziaWG";
homepage = "https://github.com/amnezia-vpn/amneziawg-go";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ averyanalex ];
mainProgram = "amneziawg-go";
};
}