2018-05-19 10:01:59 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchzip }:
|
2018-05-19 08:15:26 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "wireguard-go";
|
2020-01-03 01:13:57 +00:00
|
|
|
version = "0.0.20191012";
|
2018-05-19 08:15:26 +00:00
|
|
|
|
2019-10-04 01:00:00 +00:00
|
|
|
goPackagePath = "golang.zx2c4.com/wireguard";
|
2018-05-19 08:15:26 +00:00
|
|
|
|
2018-05-19 10:01:59 +00:00
|
|
|
src = fetchzip {
|
2018-05-19 08:15:26 +00:00
|
|
|
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
|
2020-01-03 01:13:57 +00:00
|
|
|
sha256 = "0s3hvqpz13n630yvi0476hfzrp3xcj8x61zc2hl5z70f8kvbay4i";
|
2018-05-19 08:15:26 +00:00
|
|
|
};
|
|
|
|
|
2020-01-05 15:38:24 +00:00
|
|
|
patches = [ ./0001-Fix-darwin-build.patch ];
|
|
|
|
|
2018-05-19 08:15:26 +00:00
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2019-06-01 20:46:56 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2018-05-19 08:15:26 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Userspace Go implementation of WireGuard";
|
|
|
|
homepage = https://git.zx2c4.com/wireguard-go/about/;
|
|
|
|
license = licenses.gpl2;
|
2019-02-22 15:02:51 +00:00
|
|
|
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
|
2018-05-19 08:15:26 +00:00
|
|
|
};
|
|
|
|
}
|