1 { lib, buildGoModule, fetchzip, testers, wireguard-go }:
4 pname = "wireguard-go";
5 version = "0.0.20230223";
8 url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
9 sha256 = "sha256-ZVWbZwSpxQvxwySS3cfzdRReFtHWk6LT2AuIe10hyz0=";
13 # Skip formatting tests
17 vendorHash = "sha256-i6ncA71R0hi1SzqCLphhtF3yRAHDmOdYJQ6pf3UDBg8=";
19 subPackages = [ "." ];
21 ldflags = [ "-s" "-w" ];
24 mv $out/bin/wireguard $out/bin/wireguard-go
27 passthru.tests.version = testers.testVersion {
28 package = wireguard-go;
29 version = "v${version}";
33 description = "Userspace Go implementation of WireGuard";
34 homepage = "https://git.zx2c4.com/wireguard-go/about/";
35 license = licenses.mit;
36 maintainers = with maintainers; [ kirelagin zx2c4 ];
37 mainProgram = "wireguard-go";