diff options
Diffstat (limited to 'pkgs/by-name/ta/tailscale-nginx-auth/package.nix')
-rw-r--r-- | pkgs/by-name/ta/tailscale-nginx-auth/package.nix | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/pkgs/by-name/ta/tailscale-nginx-auth/package.nix b/pkgs/by-name/ta/tailscale-nginx-auth/package.nix index a68167b4c51ee..455374e03de86 100644 --- a/pkgs/by-name/ta/tailscale-nginx-auth/package.nix +++ b/pkgs/by-name/ta/tailscale-nginx-auth/package.nix @@ -1,19 +1,8 @@ -{ lib, stdenv, buildGoModule, fetchFromGitHub }: +{ lib, stdenv, buildGoModule, tailscale }: -let - version = "1.68.1"; -in buildGoModule { pname = "tailscale-nginx-auth"; - inherit version; - - src = fetchFromGitHub { - owner = "tailscale"; - repo = "tailscale"; - rev = "v${version}"; - hash = "sha256-ZAzro69F7ovfdqzRss/U7puh1T37bkEtUXabCYc5LwU="; - }; - vendorHash = "sha256-SUjoeOFYz6zbEgv/vND7kEXbuWlZDrUKF2Dmqsf/KVw="; + inherit (tailscale) version src vendorHash; CGO_ENABLED = 0; @@ -22,8 +11,8 @@ buildGoModule { ldflags = [ "-w" "-s" - "-X tailscale.com/version.longStamp=${version}" - "-X tailscale.com/version.shortStamp=${version}" + "-X tailscale.com/version.longStamp=${tailscale.version}" + "-X tailscale.com/version.shortStamp=${tailscale.version}" ]; postInstall = lib.optionalString stdenv.isLinux '' |