3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/wireguard-go/default.nix

31 lines
788 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchzip }:
2018-05-19 09:15:26 +01:00
buildGoPackage rec {
pname = "wireguard-go";
version = "0.0.20200320";
2018-05-19 09:15:26 +01:00
goPackagePath = "golang.zx2c4.com/wireguard";
2018-05-19 09:15:26 +01:00
src = fetchzip {
2018-05-19 09:15:26 +01:00
url = "https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-${version}.tar.xz";
sha256 = "0fy4qsss3i3pkq1rpgjds4aipbwlh1dr9hbbf7jn2a1c63kfks0r";
2018-05-19 09:15:26 +01:00
};
patches = [ ./0001-Fix-darwin-build.patch ];
2018-05-19 09:15:26 +01:00
goDeps = ./deps.nix;
2019-06-01 21:46:56 +01:00
passthru.updateScript = ./update.sh;
postInstall = ''
mv $out/bin/wireguard $out/bin/wireguard-go
'';
meta = with lib; {
2018-05-19 09:15:26 +01:00
description = "Userspace Go implementation of WireGuard";
homepage = "https://git.zx2c4.com/wireguard-go/about/";
2018-05-19 09:15:26 +01:00
license = licenses.gpl2;
maintainers = with maintainers; [ elseym kirelagin yegortimoshenko zx2c4 ];
2018-05-19 09:15:26 +01:00
};
}