2018-05-19 03:01:59 -07:00
|
|
|
{ stdenv, buildGoPackage, fetchzip }:
|
2018-05-19 01:15:26 -07:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "wireguard-go-${version}";
|
2018-10-13 05:26:42 -07:00
|
|
|
version = "0.0.20181001";
|
2018-05-19 01:15:26 -07:00
|
|
|
|
2018-06-08 20:02:56 -07:00
|
|
|
goPackagePath = "git.zx2c4.com/wireguard-go";
|
2018-05-19 01:15:26 -07:00
|
|
|
|
2018-05-19 03:01:59 -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";
|
2018-10-13 05:26:42 -07:00
|
|
|
sha256 = "0yh9f58xn8kcq3wgx2s8j19k2h1vbmg70fn5gvw9k98f5mzynls3";
|
2018-05-19 01:15:26 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Userspace Go implementation of WireGuard";
|
|
|
|
homepage = https://git.zx2c4.com/wireguard-go/about/;
|
|
|
|
license = licenses.gpl2;
|
2018-06-08 20:39:43 -07:00
|
|
|
maintainers = with maintainers; [ kirelagin yegortimoshenko zx2c4 ];
|
2018-05-21 17:52:47 -07:00
|
|
|
platforms = platforms.darwin;
|
2018-05-19 01:15:26 -07:00
|
|
|
};
|
|
|
|
}
|