nixpkgs/pkgs/tools/networking/wireguard-go/default.nix

25 lines
674 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchzip }:
2018-05-19 01:15:26 -07:00
buildGoPackage rec {
pname = "wireguard-go";
version = "0.0.20190908";
2018-05-19 01:15:26 -07:00
goPackagePath = "golang.zx2c4.com/wireguard";
2018-05-19 01:15:26 -07:00
src = fetchzip {
2018-05-19 01:15:26 -07:00
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
sha256 = "1jsch0157nk86krdknij7dsvg6i7ar0ydhy07r40drhxqyp3q0hx";
2018-05-19 01:15:26 -07:00
};
goDeps = ./deps.nix;
2019-06-01 13:46:56 -07:00
passthru.updateScript = ./update.sh;
2018-05-19 01:15:26 -07:00
meta = with stdenv.lib; {
description = "Userspace Go implementation of WireGuard";
homepage = https://git.zx2c4.com/wireguard-go/about/;
license = licenses.gpl2;
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
2018-05-19 01:15:26 -07:00
};
}