Merge pull request #324555 from SuperSandro2000/tailscale-nginx-auth

This commit is contained in:
Sandro
2024-07-10 16:12:21 +02:00
committed by GitHub
2 changed files with 6 additions and 15 deletions
@@ -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 ''
+2
View File
@@ -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; {