2018-05-19 12:01:59 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchzip }:
|
2018-05-19 10:15:26 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "wireguard-go-${version}";
|
2019-06-01 22:47:25 +02:00
|
|
|
version = "0.0.20190517";
|
2018-05-19 10:15:26 +02:00
|
|
|
|
2018-06-09 05:02:56 +02:00
|
|
|
goPackagePath = "git.zx2c4.com/wireguard-go";
|
2018-05-19 10:15:26 +02:00
|
|
|
|
2018-05-19 12:01:59 +02:00
|
|
|
src = fetchzip {
|
2018-05-19 10:15:26 +02:00
|
|
|
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
|
2019-06-01 22:47:25 +02:00
|
|
|
sha256 = "0ir3dp13vkkqr76q0jvw610qw40053ngk51psqhqxfaw3jicdqgr";
|
2018-05-19 10:15:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2019-06-01 22:46:56 +02:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2018-05-19 10:15:26 +02: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 16:02:51 +01:00
|
|
|
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
|
2018-05-22 02:52:47 +02:00
|
|
|
platforms = platforms.darwin;
|
2018-05-19 10:15:26 +02:00
|
|
|
};
|
|
|
|
}
|