Commit b10b8846 authored by 06kellyjac's avatar 06kellyjac
Browse files

tailscale: move back to buildGoModule

parent 1fd39892
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildGo123Module,

  buildGoModule,
  fetchFromGitHub,
  fetchpatch,

  makeWrapper,
  installShellFiles,
  # runtime tooling - linux
  getent,
  iproute2,
  iptables,
  lsof,
  shadow,
  procps,
  # runtime tooling - darwin
  lsof,

  nixosTests,
  installShellFiles,
  tailscale-nginx-auth,
}:

let
  version = "1.80.2";
in
buildGo123Module {
buildGoModule {
  pname = "tailscale";
  inherit version;

@@ -93,9 +98,9 @@ buildGo123Module {
      wrapProgram $out/bin/tailscaled \
        --prefix PATH : ${
          lib.makeBinPath [
            getent
            iproute2
            iptables
            getent
            shadow
          ]
        } \
@@ -116,13 +121,13 @@ buildGo123Module {
    inherit tailscale-nginx-auth;
  };

  meta = with lib; {
  meta = {
    homepage = "https://tailscale.com";
    description = "Node agent for Tailscale, a mesh VPN built on WireGuard";
    changelog = "https://github.com/tailscale/tailscale/releases/tag/v${version}";
    license = licenses.bsd3;
    license = lib.licenses.bsd3;
    mainProgram = "tailscale";
    maintainers = with maintainers; [
    maintainers = with lib.maintainers; [
      mbaillie
      jk
      mfrw