diff options
author | Pavel Borzenkov <pavel@borzenkov.net> | 2021-09-30 18:06:43 +0200 |
---|---|---|
committer | Pavel Borzenkov <pavel@borzenkov.net> | 2021-09-30 19:00:49 +0200 |
commit | f848a875360ccf9bd72467879b8370119c88d5dd (patch) | |
tree | 69471d9939b513e3d46920991b59f1699d93c056 /pkgs/servers/tailscale | |
parent | d5646735f0a360b7e6e1531b58b30243bba21530 (diff) |
tailscale: add support for Darwin
Open source tailscale client is supported on Darwin and works just fine: https://github.com/tailscale/tailscale/wiki/Tailscaled-on-macOS
Diffstat (limited to 'pkgs/servers/tailscale')
-rw-r--r-- | pkgs/servers/tailscale/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index 1a592494f154a..67e18f104d748 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2, procps }: +{ lib, stdenv, buildGoModule, fetchFromGitHub, makeWrapper, iptables, iproute2, procps }: buildGoModule rec { pname = "tailscale"; @@ -11,7 +11,7 @@ buildGoModule rec { sha256 = "sha256-66akb1ru2JJe23Cr8q9mkMmmgqtezqh+Mc8aA+Rovb8="; }; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ]; CGO_ENABLED = 0; @@ -25,7 +25,7 @@ buildGoModule rec { ldflags = [ "-X tailscale.com/version.Long=${version}" "-X tailscale.com/version.Short=${version}" ]; - postInstall = '' + postInstall = lib.optionalString stdenv.isLinux '' wrapProgram $out/bin/tailscaled --prefix PATH : ${lib.makeBinPath [ iproute2 iptables ]} wrapProgram $out/bin/tailscale --suffix PATH : ${lib.makeBinPath [ procps ]} @@ -36,7 +36,6 @@ buildGoModule rec { 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 ]; }; |