depot/third_party/nixpkgs/pkgs/tools/networking/wireguard-go/default.nix
Default email 456cea78a8 Project import generated by Copybara.
GitOrigin-RevId: 88226ea038e538e09c272a7c56ba73c3f5eed57f
2021-08-25 10:27:29 +02:00

30 lines
750 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 yegortimoshenko zx2c4 ];
};
}