diff options
author | Vincent Ambo <tazjin@google.com> | 2020-02-10T22·15+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-02-10T22·16+0000 |
commit | 9e38e02c46111ef6e150d1f6933c92dc62433f1a (patch) | |
tree | 0e3cdac94b40f0ed992379b8efb2b589665ed8bd /third_party | |
parent | 042df0b523663f8a40b9c6938e649041d3401301 (diff) |
feat(third_party): Add package for tailscale r/527
Adds a package for the now-opensourced tailscale client tailscale client.
Diffstat (limited to '')
-rw-r--r-- | third_party/default.nix | 1 | ||||
-rw-r--r-- | third_party/tailscale/default.nix | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix index c943008a8dd1..193572bf65fb 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -25,6 +25,7 @@ let bashInteractive bat buildGoPackage + buildGoModule bzip2 cacert cachix diff --git a/third_party/tailscale/default.nix b/third_party/tailscale/default.nix new file mode 100644 index 000000000000..b84a8937dbdd --- /dev/null +++ b/third_party/tailscale/default.nix @@ -0,0 +1,32 @@ +# This file packages the Tailscale client using the standard upstream +# Go packaging mechanisms instead of buildGo.nix + +{ pkgs, lib, ... }: + +let + inherit (pkgs.third_party) buildGoModule fetchFromGitHub; +in buildGoModule { + pname = "tailscale"; + version = "fef25489"; + + src = fetchFromGitHub { + owner = "tailscale"; + repo = "tailscale"; + rev = "fef254898178d100f25b98530499adcf07cfded3"; + sha256 = "1islxzr8lhnl2f0r686mcciwb8lzvqjczg9fs0nagr5pp6dsi9fa"; + }; + + goPackagePath = "tailscale.com"; + modSha256 = "0cnih9flwgqjq4x4cwyac9yyz1prv2i2by1ki3g71ai8q621bq10"; + subPackages = [ + "cmd/tailscale" + "cmd/tailscaled" + ]; + + meta = with lib; { + homepage = "https://tailscale.com/"; + description = "Private WireGuard networks made easy"; + license = licenses.bsd3; + maintainers = with maintainers; [ tazjin ]; + }; +} |