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

31 lines
750 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchzip }:
2018-05-19 10:15:26 +02:00
buildGoPackage rec {
pname = "wireguard-go";
version = "0.0.20210424";
2018-05-19 10:15:26 +02:00
goPackagePath = "golang.zx2c4.com/wireguard";
2018-05-19 10:15:26 +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";
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;
postInstall = ''
mv $out/bin/wireguard $out/bin/wireguard-go
'';
2021-08-13 12:58:37 +02:00
doCheck = true;
meta = with lib; {
2018-05-19 10:15:26 +02:00
description = "Userspace Go implementation of WireGuard";
homepage = "https://git.zx2c4.com/wireguard-go/about/";
license = licenses.mit;
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
2018-05-19 10:15:26 +02:00
};
}