2495e3f88b
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
30 lines
739 B
Nix
30 lines
739 B
Nix
{ lib, buildGoPackage, fetchzip }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "wireguard-go";
|
|
version = "0.0.20210424";
|
|
|
|
goPackagePath = "golang.zx2c4.com/wireguard";
|
|
|
|
src = fetchzip {
|
|
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
|
|
sha256 = "RUUueSsfEi1H+ckrnPKqbVlWONhCplMMftlyAmwK+ss=";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
postInstall = ''
|
|
mv $out/bin/wireguard $out/bin/wireguard-go
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Userspace Go implementation of WireGuard";
|
|
homepage = "https://git.zx2c4.com/wireguard-go/about/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ elseym kirelagin yana zx2c4 ];
|
|
};
|
|
}
|