Skip to content

Commit

Permalink
amneziawg-go: init at 0.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
averyanalex committed Aug 22, 2024
1 parent 4c97b42 commit 7577550
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/by-name/am/amneziawg-go/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 7577550

Please sign in to comment.