2020-03-08 07:47:50 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tailscale";
|
2020-03-23 20:11:14 +01:00
|
|
|
version = "0.97";
|
2020-03-08 07:47:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tailscale";
|
|
|
|
repo = "tailscale";
|
2020-03-23 20:11:14 +01:00
|
|
|
rev = "v${version}";
|
2020-03-18 06:52:14 +01:00
|
|
|
sha256 = "0ckjqhj99c25h8xgyfkrd19nw5w4a7972nvba9r5faw5micjs02n";
|
2020-03-08 07:47:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
goPackagePath = "tailscale.com";
|
2020-03-18 06:52:14 +01:00
|
|
|
modSha256 = "0anpakcqz4irwxnm0iwm7wqzh84kv3yxxdvyr38154pbd0ys5pa2";
|
2020-03-08 07:47:50 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|