2020-03-08 09:47:50 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tailscale";
|
2020-08-11 18:00:13 +03:00
|
|
|
version = "1.0.3";
|
2020-03-08 09:47:50 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tailscale";
|
|
|
|
repo = "tailscale";
|
2020-07-19 23:23:36 +03:00
|
|
|
rev = "v${version}";
|
2020-08-11 18:00:13 +03:00
|
|
|
sha256 = "1m3cfq4qyg2l0hpk8s7nr8cw2j7akiga7x8bwyhdjifnkwsyz6x7";
|
2020-03-08 09:47:50 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
2020-07-30 05:43:04 +03:00
|
|
|
vendorSha256 = "0l9lzwwvshg9a2kmmq1cvvlaxncbas78a9hjhvjjar89rjr2k2sv";
|
2020-08-04 03:26:27 +03:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-08 09:47:50 +03:00
|
|
|
subPackages = [ "cmd/tailscale" "cmd/tailscaled" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/tailscaled --prefix PATH : ${
|
|
|
|
lib.makeBinPath [ iproute iptables ]
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://tailscale.com";
|
|
|
|
description = "The node agent for Tailscale, a mesh VPN built on WireGuard";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ danderson mbaillie ];
|
|
|
|
};
|
2020-06-04 07:23:29 +03:00
|
|
|
}
|