2020-03-08 07:47:50 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tailscale";
|
2020-04-20 07:51:08 +02:00
|
|
|
version = "0.97-219";
|
2020-03-08 07:47:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tailscale";
|
|
|
|
repo = "tailscale";
|
2020-04-20 07:51:08 +02:00
|
|
|
# Tailscale uses "git describe" as version numbers. v0.97-219
|
|
|
|
# means "tag v0.97 plus 219 commits", which is what this rev is.
|
|
|
|
rev = "afbfe4f217a2a202f0eefe943c7c1ef648311339";
|
|
|
|
sha256 = "1an897ys3gycdmclqd0yqs9f7q88zxqxyc6r0gcgs4678svxhb68";
|
2020-03-08 07:47:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
|
|
|
goPackagePath = "tailscale.com";
|
2020-05-01 03:59:00 +02:00
|
|
|
overrideModAttrs = (_: {
|
|
|
|
preBuild = ''
|
|
|
|
rm ipn/e2e_test.go
|
|
|
|
rm control/controlclient/auto_test.go
|
|
|
|
rm control/controlclient/direct_test.go
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
vendorSha256 = "1v90lbwgrc2m4kvpglf2jykrm8rry3pbhqqbc3mcysrzmqlw84yl";
|
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 ];
|
|
|
|
};
|
2020-05-01 03:59:00 +02:00
|
|
|
}
|