diff --git a/pkgs/by-name/ta/tailscale-nginx-auth/package.nix b/pkgs/by-name/ta/tailscale-nginx-auth/package.nix index bb572cb84797..455374e03de8 100644 --- a/pkgs/by-name/ta/tailscale-nginx-auth/package.nix +++ b/pkgs/by-name/ta/tailscale-nginx-auth/package.nix @@ -2,12 +2,19 @@ buildGoModule { pname = "tailscale-nginx-auth"; - inherit (tailscale) version src vendorHash ldflags; + inherit (tailscale) version src vendorHash; CGO_ENABLED = 0; subPackages = [ "cmd/nginx-auth" ]; + ldflags = [ + "-w" + "-s" + "-X tailscale.com/version.longStamp=${tailscale.version}" + "-X tailscale.com/version.shortStamp=${tailscale.version}" + ]; + postInstall = lib.optionalString stdenv.isLinux '' mv $out/bin/nginx-auth $out/bin/tailscale.nginx-auth sed -i -e "s#/usr/sbin#$out/bin#" ./cmd/nginx-auth/tailscale.nginx-auth.service diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index 9eb168751fa8..de407fb44325 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -11,6 +11,7 @@ , procps , nixosTests , installShellFiles +, tailscale-nginx-auth }: let @@ -76,6 +77,7 @@ buildGoModule { passthru.tests = { inherit (nixosTests) headscale; + inherit tailscale-nginx-auth; }; meta = with lib; {