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

27 lines
722 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchzip }:
2018-05-19 10:15:26 +02:00
buildGoPackage rec {
pname = "wireguard-go";
version = "0.0.20200121";
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 = "04ca1j8lcbyg1qg7ls23yy90s17k97i912ksxfpads0sdd3r2yc9";
2018-05-19 10:15:26 +02:00
};
patches = [ ./0001-Fix-darwin-build.patch ];
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;
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
2018-05-19 10:15:26 +02:00
};
}