2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoPackage, fetchzip }:
|
2018-05-19 10:15:26 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "wireguard-go";
|
2021-08-11 12:40:03 +02:00
|
|
|
version = "0.0.20210424";
|
2018-05-19 10:15:26 +02:00
|
|
|
|
2019-10-04 03:00:00 +02:00
|
|
|
goPackagePath = "golang.zx2c4.com/wireguard";
|
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";
|
2021-08-11 12:40:03 +02:00
|
|
|
sha256 = "RUUueSsfEi1H+ckrnPKqbVlWONhCplMMftlyAmwK+ss=";
|
2018-05-19 10:15:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
2019-06-01 22:46:56 +02:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2020-05-22 11:37:54 +02:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/wireguard $out/bin/wireguard-go
|
|
|
|
'';
|
|
|
|
|
2021-08-13 12:58:37 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-05-19 10:15:26 +02:00
|
|
|
description = "Userspace Go implementation of WireGuard";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git.zx2c4.com/wireguard-go/about/";
|
2021-08-16 15:40:31 +02:00
|
|
|
license = licenses.mit;
|
2019-02-22 16:02:51 +01:00
|
|
|
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
|
2018-05-19 10:15:26 +02:00
|
|
|
};
|
|
|
|
}
|